VerticalDialog.show constructor
VerticalDialog.show(
- BuildContext context, {
- Widget? icon,
- String? title,
- required Widget content,
- required List<
DialogButton> buttons, - required Color backgroundColor,
- 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();
}
}