ackNackDialog function

Widget ackNackDialog(
  1. AppModel app,
  2. BuildContext context, {
  3. required String title,
  4. required String message,
  5. required OnSelection onSelection,
  6. String? ackButtonLabel,
  7. String? nackButtonLabel,
  8. bool? includeHeading = true,
  9. Key? key,
  10. double? widthFraction,
})

Implementation

Widget ackNackDialog(
  AppModel app,
  BuildContext context, {
  required String title,
  required String message,
  required OnSelection onSelection,
  String? ackButtonLabel,
  String? nackButtonLabel,
  bool? includeHeading = true,
  Key? key,
  double? widthFraction, // percentage of screen width
}) =>
    StyleRegistry.registry()
        .styleWithApp(app)
        .frontEndStyle()
        .dialogWidgetStyle()
        .ackNackDialog(
          app,
          context,
          title: title,
          message: message,
          onSelection: onSelection,
          ackButtonLabel: ackButtonLabel,
          nackButtonLabel: nackButtonLabel,
          includeHeading: includeHeading,
          key: key,
          widthFraction: widthFraction,
        );