mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
20 lines
552 B
Dart
20 lines
552 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
Future<T?> showPopUp<T>({
|
|
required BuildContext context,
|
|
required WidgetBuilder builder,
|
|
bool barrierDismissible = true,
|
|
Color? barrierColor,
|
|
bool useSafeArea = false,
|
|
bool useRootNavigator = true,
|
|
RouteSettings? routeSettings
|
|
}) {
|
|
return showDialog<T>(
|
|
context: context,
|
|
builder: builder,
|
|
barrierDismissible: barrierDismissible,
|
|
barrierColor: barrierColor,
|
|
useSafeArea: useSafeArea,
|
|
useRootNavigator: useRootNavigator,
|
|
routeSettings: routeSettings);
|
|
}
|