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 Color backgroundColor,
  7. required bool disableTintColor,
})

Implementation

VerticalDialog.show(
    this.context, {
      this.icon,
      this.title,
      required this.content,

      required this.buttons,

      required this.backgroundColor,
      required this.disableTintColor,
    }){

  // Decide dialog layout based on platform
  if (Platform.isIOS) {
    _cupertinoView();
  } else if (Platform.isAndroid) {
    _materialView();
  } else {
    _materialView();
  }
}