openSelectionDialog function
void
openSelectionDialog(
- AppModel app,
- BuildContext context,
- String name, {
- required String title,
- required List<
String> options, - required OnSelection onSelection,
- String? buttonLabel,
- double? widthFraction,
- bool? includeHeading = true,
Implementation
void openSelectionDialog(
AppModel app,
BuildContext context,
String name, {
required String title,
required List<String> options,
required OnSelection onSelection,
String? buttonLabel,
double? widthFraction, // percentage of screen width
bool? includeHeading = true,
}) =>
StyleRegistry.registry()
.styleWithApp(app)
.frontEndStyle()
.dialogStyle()
.openSelectionDialog(
app,
context, name, title: title,
options: options, onSelection: onSelection,
buttonLabel: buttonLabel,
widthFraction: widthFraction, // percentage of screen width
includeHeading: includeHeading,
);