entryDialog function
Widget
entryDialog(
- AppModel app,
- BuildContext context, {
- required String title,
- String? ackButtonLabel,
- String? nackButtonLabel,
- String? hintText,
- required dynamic onPressed(
- String? response
),
- String? initialValue,
- bool? includeHeading = true,
- Key? key,
- 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);