openEntryDialog function

void openEntryDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. required String title,
  5. String? ackButtonLabel,
  6. String? nackButtonLabel,
  7. String? hintText,
  8. required dynamic onPressed(
    1. String? response
    ),
  9. String? initialValue,
  10. double? widthFraction,
  11. bool? includeHeading = true,
})

Implementation

void openEntryDialog(
  AppModel app,
  BuildContext context,
  String name, {
  required String title,
  String? ackButtonLabel,
  String? nackButtonLabel,
  String? hintText,
  required Function(String? response) onPressed,
  String? initialValue,
  double? widthFraction, // percentage of screen width
  bool? includeHeading = true,
}) =>
    StyleRegistry.registry()
        .styleWithApp(app)
        .frontEndStyle()
        .dialogStyle()
        .openEntryDialog(
          app,
          context, name, title: title,
          ackButtonLabel: ackButtonLabel,
          nackButtonLabel: nackButtonLabel,
          hintText: hintText, onPressed: onPressed,
          initialValue: initialValue,
          widthFraction: widthFraction, // percentage of screen width
          includeHeading: includeHeading,
        );