TrailingActionDialog.show constructor

TrailingActionDialog.show(
  1. BuildContext context, {
  2. String? title,
  3. required Widget content,
  4. required String buttonTitle,
  5. required dynamic onAccept()?,
  6. required String trailingButtonTitle,
  7. required dynamic onTrailingPressed(),
  8. Color? trailingButtonColor,
  9. Color? buttonColor,
  10. required bool dismissibleDialog,
  11. required Color backgroundColor,
  12. required bool disableTintColor,
})

Implementation

TrailingActionDialog.show(
  this.context, {
  this.title,
  required this.content,
  required this.buttonTitle,
  required this.onAccept,
  required this.trailingButtonTitle,
  required this.onTrailingPressed,
  this.trailingButtonColor,
  this.buttonColor,
  required this.dismissibleDialog,
  required this.backgroundColor,
  required this.disableTintColor,
}) {
  // Decide dialog layout based on platform
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    _cupertinoView();
  } else {
    _materialView();
  }
}