entryDialog function

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

Implementation

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