2020-09-25 15:32:44 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
Future<T?> showPopUp<T>({
|
|
|
|
required BuildContext context,
|
|
|
|
required WidgetBuilder builder,
|
2020-09-25 15:32:44 +00:00
|
|
|
bool barrierDismissible = true,
|
2022-10-12 17:09:57 +00:00
|
|
|
Color? barrierColor,
|
2020-09-25 15:32:44 +00:00
|
|
|
bool useSafeArea = false,
|
|
|
|
bool useRootNavigator = true,
|
2022-10-12 17:09:57 +00:00
|
|
|
RouteSettings? routeSettings
|
2020-09-25 15:32:44 +00:00
|
|
|
}) {
|
|
|
|
return showDialog<T>(
|
|
|
|
context: context,
|
|
|
|
builder: builder,
|
|
|
|
barrierDismissible: barrierDismissible,
|
2020-10-02 17:28:29 +00:00
|
|
|
barrierColor: barrierColor,
|
|
|
|
useSafeArea: useSafeArea,
|
2020-09-25 15:32:44 +00:00
|
|
|
useRootNavigator: useRootNavigator,
|
2021-04-02 17:43:06 +00:00
|
|
|
routeSettings: routeSettings);
|
2020-09-25 15:32:44 +00:00
|
|
|
}
|