DialogView.confirm constructor

const DialogView.confirm({
  1. Key? key,
  2. Widget? child,
  3. bool isShowTitle = true,
  4. bool isConfirm = true,
  5. bool isLoad = false,
  6. bool fullScreen = false,
  7. String? title = "温馨提示",
  8. String? okHint = "确定",
  9. String? noHint = "取消",
  10. required String? content,
  11. required TouchTap? onOk,
  12. TouchTap? onNo,
  13. bool expanded = false,
  14. Color? backgroundColor,
  15. num? confirmHeight,
  16. num? titleHeight,
  17. num? horizontal,
  18. num? vertical,
  19. num? minHeight,
  20. num? titleSize,
  21. num? textSize,
  22. num? loadWidth,
  23. num? loadTop,
  24. num? top,
  25. Curve insetAnimationCurve = Curves.decelerate,
  26. Duration insetAnimationDuration = const Duration(milliseconds: 100),
})

显示确定与取消

Implementation

const DialogView.confirm({
  Key? key,
  this.child,
  this.isShowTitle = true,
  this.isConfirm = true,
  this.isLoad = false,
  this.fullScreen = false,
  this.title = "温馨提示",
  this.okHint = "确定",
  this.noHint = "取消",
  required this.content,
  required this.onOk,
  this.onNo,
  this.expanded = false,
  this.backgroundColor,
  this.confirmHeight,
  this.titleHeight,
  this.horizontal,
  this.vertical,
  this.minHeight,
  this.titleSize,
  this.textSize,
  this.loadWidth,
  this.loadTop,
  this.top,
  this.insetAnimationCurve = Curves.decelerate,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
}) : super(key: key);