flexibleDialog method
Widget
flexibleDialog(
- AppModel app,
- BuildContext context, {
- Key? key,
- String? title,
- required Widget child,
- List<
Widget> ? buttons, - bool? includeHeading,
- double? widthFraction,
override
Implementation
@override
Widget flexibleDialog(
AppModel app,
BuildContext context, {
Key? key,
String? title,
required Widget child,
List<Widget>? buttons,
bool? includeHeading,
double? widthFraction, // percentage of screen width
}) {
return dialogHelper.build(
app,
context,
width: widthFraction == null
? null
: fullScreenWidth(context) * widthFraction,
includeHeading: includeHeading,
key: key,
title: title,
dialogButtonPosition: DialogButtonPosition.topRight,
contents: child,
buttons: buttons,
dialogBackgroundColor:
_style.monaStyleAttributesModel.dialogBackgroundColor,
dialogSeperatorColor:
_style.monaStyleAttributesModel.dialogSeperatorColor,
);
}