You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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,
|
|
|
|
//barrierColor: barrierColor,
|
|
|
|
//useSafeArea: useSafeArea,
|
|
|
|
useRootNavigator: useRootNavigator,
|
|
|
|
routeSettings: routeSettings,
|
|
|
|
child: child);
|
|
|
|
}
|