openAckNackDialog function

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

Implementation

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