showTxModalBottomSheet<T> function
Future<T?>
showTxModalBottomSheet<T>(
- BuildContext context, {
- required WidgetBuilder? builder,
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- Color? barrierColor,
- bool isScrollControlled = false,
- bool isDismissible = true,
- bool enableDrag = true,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? contentPadding,
- bool persistent = false,
- bool? ignoreSafeArea,
- RouteSettings? settings,
- Duration? enterBottomSheetDuration,
- Duration? exitBottomSheetDuration,
Implementation
Future<T?> showTxModalBottomSheet<T>(
BuildContext context, {
required WidgetBuilder? builder,
Color? backgroundColor,
double? elevation,
ShapeBorder? shape,
Clip? clipBehavior,
Color? barrierColor,
bool isScrollControlled = false,
bool useRootNavigator = false,
bool isDismissible = true,
bool enableDrag = true,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? contentPadding,
bool persistent = false,
bool? ignoreSafeArea,
RouteSettings? settings,
Duration? enterBottomSheetDuration,
Duration? exitBottomSheetDuration,
}) {
final NavigatorState navigator =
Navigator.of(context, rootNavigator: useRootNavigator);
return navigator.push(TxModalBottomSheetRoute<T>(
context,
builder: builder,
isPersistent: persistent,
theme: Theme.of(context),
isScrollControlled: isScrollControlled,
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
backgroundColor: backgroundColor,
elevation: elevation,
shape: shape,
removeTop: ignoreSafeArea ?? true,
clipBehavior: clipBehavior,
isDismissible: isDismissible,
modalBarrierColor: barrierColor,
settings: settings,
enableDrag: enableDrag,
enterBottomSheetDuration:
enterBottomSheetDuration ?? const Duration(milliseconds: 250),
exitBottomSheetDuration:
exitBottomSheetDuration ?? const Duration(milliseconds: 200),
));
}