showFullScreen<T> static method
Future<T?>
showFullScreen<T>(
- BuildContext context, {
- required String title,
- required Widget body,
- Widget? action,
Presents a full-screen dialog with a header of title and action.
Implementation
static Future<T?> showFullScreen<T>(
BuildContext context, {
required String title,
required Widget body,
Widget? action,
}) {
return showGeneralDialog<T>(
context: context,
barrierLabel: 'Full screen dialog',
transitionDuration: M3EMotion.long2,
pageBuilder: (BuildContext context, _, _) {
return M3EComponentTheme(
builder: (context) =>
_FullScreenDialog(title: title, body: body, action: action),
);
},
transitionBuilder: _slide,
);
}