FrameDesign constructor

const FrameDesign({
  1. bool? onSuccess()?,
  2. Future<void> onFutureSuccess()?,
  3. Future<bool?> onFutureSuccessValidator()?,
  4. VoidCallback? onCancel,
  5. String cancelButtonTitle = "Cancel",
  6. String title = "Title",
  7. String? subtitle,
  8. String successButtonTitle = "Save",
  9. bool showCloseButton = true,
  10. bool conditionToDisableSuccessButton = false,
  11. IconData titlePrefixIcon = Icons.info,
  12. bool showBottomButtonBar = true,
  13. double? width,
  14. double? height,
  15. double? titleBarHeight,
  16. double? bottomBarHeight,
  17. String? info,
  18. Color? successButtonColor,
  19. Color? cancelButtonColor,
  20. Color? titleBarColor,
  21. Color? bottomBarColor,
  22. List<Widget>? headerTrailingWidgets,
  23. FocusTraversalPolicy? traversalPolicy,
  24. bool cycleFocusWithinGroup = false,
  25. FocusNode? cancelButtonFocusNode,
  26. FocusNode? saveButtonFocusNode,
  27. String? cycleFocusTargetRoleBuilder()?,
  28. List<String> cycleFocusSkipRoles = const ['SAVE_BUTTON', 'CANCEL_BUTTON'],
})

Implementation

const FrameDesign({
  this.onSuccess,
  this.onFutureSuccess,
  this.onFutureSuccessValidator,
  this.onCancel,
  this.cancelButtonTitle = "Cancel",
  this.title = "Title",
  this.subtitle,
  this.successButtonTitle = "Save",
  this.showCloseButton = true,
  this.conditionToDisableSuccessButton = false,
  this.titlePrefixIcon = Icons.info,
  this.showBottomButtonBar = true,
  this.width,
  this.height,
  this.titleBarHeight,
  this.bottomBarHeight,
  this.info,
  this.successButtonColor,
  this.cancelButtonColor,
  this.titleBarColor,
  this.bottomBarColor,
  this.headerTrailingWidgets,
  this.traversalPolicy,
  this.cycleFocusWithinGroup = false,
  this.cancelButtonFocusNode,
  this.saveButtonFocusNode,
  this.cycleFocusTargetRoleBuilder,
  this.cycleFocusSkipRoles = const ['SAVE_BUTTON', 'CANCEL_BUTTON'],
});