createRoute method
Implementation
@override
Route<dynamic> createRoute(RouteSettings settings, RouteOptions options) {
BuildContext context = MeteorFlutterNavigator.rootKey!.currentContext!;
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
return ModalBottomSheetRoute(
builder: (context) => options.builder(settings.arguments as Map<String, dynamic>?),
capturedThemes: InheritedTheme.capture(from: context, to: context),
isScrollControlled: isScrollControlled ?? false,
scrollControlDisabledMaxHeightRatio: scrollControlDisabledMaxHeightRatio ?? 9.0 / 16.0,
barrierLabel: barrierLabel ?? localizations.scrimLabel,
barrierOnTapHint: localizations.scrimOnTapHint(localizations.bottomSheetLabel),
backgroundColor: backgroundColor,
elevation: elevation,
shape: shape,
clipBehavior: clipBehavior,
constraints: constraints,
isDismissible: isDismissible ?? true,
modalBarrierColor: barrierColor ?? Theme.of(context).bottomSheetTheme.modalBarrierColor,
enableDrag: enableDrag ?? false,
showDragHandle: showDragHandle,
settings: settings,
transitionAnimationController: transitionAnimationController,
anchorPoint: anchorPoint,
useSafeArea: useSafeArea ?? false,
);
}