photo_deleting_dialog.dart 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import 'package:clean/dialog/photo_delete_finish_dialog.dart';
  2. import 'package:clean/resource/assets.gen.dart';
  3. import 'package:clean/resource/colors.gen.dart';
  4. import 'package:flutter/Material.dart';
  5. import 'package:flutter/cupertino.dart';
  6. import 'package:flutter_screenutil/flutter_screenutil.dart';
  7. import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
  8. import 'package:lottie/lottie.dart';
  9. void photoDeletingDialog() {
  10. const tag = 'photoDeletingDialog';
  11. SmartDialog.show(
  12. tag: tag,
  13. backType: SmartBackType.block,
  14. clickMaskDismiss: false,
  15. maskColor: ColorName.black,
  16. builder: (_) {
  17. return Container(
  18. height: double.infinity,
  19. width: double.infinity,
  20. child: Stack(
  21. children: [
  22. Positioned(
  23. top: 176.h,
  24. left: 0,
  25. right: 0,
  26. child: Column(
  27. children: [
  28. Assets.images.iconPhotoDeleting
  29. .image(width: 273.w, height: 220.h),
  30. SizedBox(height: 45.h),
  31. Text(
  32. 'Deleting...',
  33. style: TextStyle(
  34. color: ColorName.white,
  35. fontSize: 16.sp,
  36. fontWeight: FontWeight.w500,
  37. ),
  38. ),
  39. ],
  40. ),
  41. ),
  42. IgnorePointer(
  43. child: Assets.images.bgHome.image(
  44. width: 360.w,
  45. height: 234.h,
  46. ),
  47. ),
  48. ],
  49. ),
  50. );
  51. });
  52. }