photo_deleting_dialog.dart 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: 100.h,
  24. left: 0,
  25. right: 0,
  26. child: Column(
  27. children: [
  28. Lottie.asset(
  29. Assets.anim.animDeleting,
  30. height: 300.w,
  31. repeat: true,
  32. ),
  33. // Assets.images.iconPhotoDeleting
  34. // .image(width: 273.w, height: 220.h),
  35. // SizedBox(height: 45.h),
  36. Text(
  37. 'Deleting...',
  38. style: TextStyle(
  39. color: ColorName.white,
  40. fontSize: 16.sp,
  41. fontWeight: FontWeight.w500,
  42. ),
  43. ),
  44. ],
  45. ),
  46. ),
  47. IgnorePointer(
  48. child: Assets.images.bgHome.image(
  49. width: 360.w,
  50. ),
  51. ),
  52. ],
  53. ),
  54. );
  55. });
  56. }