ModalTopSheetRoute<T> constructor

ModalTopSheetRoute<T>({
  1. required WidgetBuilder builder,
  2. required bool isScrollControlled,
  3. CapturedThemes? capturedThemes,
  4. String? barrierLabel,
  5. String? barrierOnTapHint,
  6. Color? backgroundColor,
  7. double? elevation,
  8. ShapeBorder? shape,
  9. Clip? clipBehavior,
  10. BoxConstraints? constraints,
  11. Color? modalBarrierColor,
  12. bool isDismissible = true,
  13. bool enableDrag = true,
  14. bool? showDragHandle,
  15. double scrollControlDisabledMaxHeightRatio = _defaultScrollControlDisabledMaxHeightRatio,
  16. RouteSettings? settings,
  17. AnimationController? transitionAnimationController,
  18. Offset? anchorPoint,
  19. bool useSafeArea = false,
})

模态顶部工作表路由。

Implementation

ModalTopSheetRoute({
  required this.builder,
  required this.isScrollControlled,
  this.capturedThemes,
  this.barrierLabel,
  this.barrierOnTapHint,
  this.backgroundColor,
  this.elevation,
  this.shape,
  this.clipBehavior,
  this.constraints,
  this.modalBarrierColor,
  this.isDismissible = true,
  this.enableDrag = true,
  this.showDragHandle,
  this.scrollControlDisabledMaxHeightRatio =
      _defaultScrollControlDisabledMaxHeightRatio,
  super.settings,
  this.transitionAnimationController,
  this.anchorPoint,
  this.useSafeArea = false,
});