VerticalDialog.show constructor

VerticalDialog.show(
  1. BuildContext context, {
  2. Widget? icon,
  3. String? title,
  4. required Widget content,
  5. required List<DialogButton> buttons,
  6. required bool dismissibleDialog,
  7. required Color backgroundColor,
  8. required bool disableTintColor,
})

Implementation

VerticalDialog.show(
  this.context, {
  this.icon,
  this.title,
  required this.content,
  required this.buttons,
  required this.dismissibleDialog,
  required this.backgroundColor,
  required this.disableTintColor,
}) {
  // Decide dialog layout based on platform
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    _cupertinoView();
  } else {
    _materialView();
  }
}