showGiantToadDialog<T> function

Future<T?> showGiantToadDialog<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. bool barrierDismissible = true,
  4. bool useRootNavigator = true,
})

Implementation

Future<T?> showGiantToadDialog<T>({
  required BuildContext context,
  required WidgetBuilder builder,
  bool barrierDismissible = true,
  bool useRootNavigator = true,
}) {
  final theme = GiantToadUiThemeScope.of(context);
  return showDialog<T>(
    context: context,
    barrierDismissible: barrierDismissible,
    barrierColor: theme.backgroundColor.withValues(alpha: 0.78),
    useRootNavigator: useRootNavigator,
    builder: (context) =>
        GiantToadUiThemeScope(theme: theme, child: builder(context)),
  );
}