complexAckNackDialog method
Widget
complexAckNackDialog(
- AppModel app,
- BuildContext context, {
- bool? includeHeading,
- Key? key,
- required String title,
- required Widget child,
- required OnSelection onSelection,
- String? ackButtonLabel,
- String? nackButtonLabel,
- double? widthFraction,
override
Implementation
@override
Widget complexAckNackDialog(
AppModel app,
BuildContext context, {
bool? includeHeading,
Key? key,
required String title,
required Widget child,
required OnSelection onSelection,
String? ackButtonLabel,
String? nackButtonLabel,
double? widthFraction, // percentage of screen width
}) {
return dialogHelper.build(
app,
context,
width: widthFraction == null
? null
: fullScreenWidth(context) * widthFraction,
key: key,
includeHeading: includeHeading,
title: title,
dialogButtonPosition: DialogButtonPosition.topRight,
contents: child,
buttons: dialogHelper.getAckNackButtons(app, context, ackFunction: () {
Navigator.of(context).pop();
onSelection(0);
}, nackFunction: () {
Navigator.of(context).pop();
onSelection(1);
}, ackButtonLabel: ackButtonLabel, nackButtonLabel: nackButtonLabel),
dialogBackgroundColor:
_style.monaStyleAttributesModel.dialogBackgroundColor,
dialogSeperatorColor:
_style.monaStyleAttributesModel.dialogSeperatorColor,
);
}