showDialog95<T> function
Future<T?>
showDialog95<T>({
- required BuildContext context,
- required String title,
- required String message,
- List<
Action95> ? actions,
Implementation
Future<T?> showDialog95<T>({
required BuildContext context,
required String title,
required String message,
List<Action95>? actions,
}) {
if (actions == null || actions.isEmpty) {
actions = [Action95.OK];
}
return showDialog(
context: context,
builder: (context) {
var maxWidth = MediaQuery.of(context).size.width / _goldenRatio;
return Center(
child: ConstrainedBox(
constraints: BoxConstraints(
maxWidth: maxWidth,
),
child: Scaffold95(
title: title,
body: Padding(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
child: Column(
children: <Widget>[
_iconMessageRow(message),
const SizedBox(height: 8),
Button95(
onTap: () {
Navigator.of(context).pop(true);
},
child: const Text('OK'),
),
],
),
),
),
),
);
},
);
}