VBottomSheet class

@author: wzp_vicky @time: 2026年6月9日 @version: V1.0 @description: 底部弹出面板组件 基于 showModalBottomSheet 封装,支持固定高度、自适应、全屏、可拖拽伸缩四种形态

Constructors

VBottomSheet()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

persistent({Key? key, required Widget child, double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 1.0, bool snap = true, List<double>? snapSizes, bool showDragHandle = true, double? borderRadius, Color? backgroundColor, EdgeInsetsGeometry? padding, DraggableScrollableController? controller, bool visible = true, Duration enterDuration = const Duration(milliseconds: 300), ValueChanged<double>? onSizeChanged, double? hideHandleThreshold, double? dismissThreshold, VoidCallback? onDismissed}) Widget
创建一个【常驻、非模态】底部面板(高德地图首页那种效果)
scaffold({Key? key, required Widget background, required Widget sheetChild, Widget overlayBuilder(BuildContext context, double extent)?, double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 1.0, bool snap = true, List<double>? snapSizes, bool showDragHandle = true, double? borderRadius, Color? backgroundColor, EdgeInsetsGeometry? padding, DraggableScrollableController? controller, bool visible = true, Duration enterDuration = const Duration(milliseconds: 300), double? hideHandleThreshold, double? dismissThreshold, VoidCallback? onDismissed}) Widget
一站式【常驻面板布局壳】:背景 + 常驻面板 + 联动浮层,三层 Stack 自动摆好
show<T>(BuildContext context, Widget child, {double? height, bool fullScreen = false, bool draggableScrollable = false, double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 1.0, bool snap = false, List<double>? snapSizes, bool enableDrag = true, bool isDismissible = true, bool showDragHandle = true, double? borderRadius, Color? backgroundColor, Color? barrierColor, EdgeInsetsGeometry? padding, VoidCallback? onDismiss}) Future<T?>
显示底部弹出面板