TrailingActionDialog.show constructor
TrailingActionDialog.show(
- BuildContext context, {
- String? title,
- required Widget content,
- required String buttonTitle,
- required dynamic onAccept()?,
- required String trailingButtonTitle,
- required dynamic onTrailingPressed(),
- Color? trailingButtonColor,
- Color? buttonColor,
- required bool dismissibleDialog,
- required Color backgroundColor,
- 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();
}
}