show static method
dynamic
show(
- BuildContext context, {
- required Widget widget,
- Color? barrierColor = const Color(0x44000000),
- bool useSafeArea = true,
- RouteSettings routeSettings = const RouteSettings(name: "showDialog"),
Implementation
static show(
BuildContext context, {
required Widget widget,
Color? barrierColor = const Color(0x44000000),
bool useSafeArea = true,
RouteSettings routeSettings = const RouteSettings(name: "showDialog"),
}) {
showDialog(
context: context,
barrierColor: barrierColor,
useSafeArea: useSafeArea,
useRootNavigator: true,
routeSettings: routeSettings,
builder: (BuildContext context) {
return widget;
});
}