2020-09-25 15:32:44 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
Future<T> showPopUp<T>({
|
|
|
|
@required BuildContext context,
|
|
|
|
WidgetBuilder builder,
|
|
|
|
bool barrierDismissible = true,
|
|
|
|
Color barrierColor,
|
|
|
|
bool useSafeArea = false,
|
|
|
|
bool useRootNavigator = true,
|
|
|
|
RouteSettings routeSettings,
|
|
|
|
Widget child,
|
|
|
|
}) {
|
|
|
|
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,
|
|
|
|
routeSettings: routeSettings,
|
|
|
|
child: child);
|
|
|
|
}
|