JDraggableView constructor
const
JDraggableView({
- Key? key,
- Widget? leading,
- Widget title = const SizedBox(),
- bool centerTitle = true,
- List<
Widget> ? actions, - bool alwaysShowLeadingAndAction = false,
- bool alwaysShowTitle = false,
- double headerExpandedHeight = 0.35,
- Widget expandedHeader = const SizedBox(),
- Widget? expandedHeaderBottomBar,
- Color? backgroundColor,
- Color? appBarColor,
- double curvedBodyRadius = 20,
- List<
Widget> body = const [], - Widget? drawer,
- bool fullyStretchable = false,
- double stretchTriggerOffset = 200,
- Widget? expandedBody,
- double stretchMaxHeight = 0.9,
- Widget? bottomSheet,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- ScrollPhysics? physics,
- ScrollController? controller,
- RefreshCallback? onRefresh,
- RefreshIndicatorTriggerMode refreshTriggerMode = RefreshIndicatorTriggerMode.onEdge,
- Color? refreshBackColor,
- Color? refreshColor,
- double refreshDisplacement = 40.0,
- double refreshStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
Constructor for the draggable view widget.
Implementation
const JDraggableView(
{super.key,
this.leading,
this.title = const SizedBox(),
this.centerTitle = true,
this.actions,
this.alwaysShowLeadingAndAction = false,
this.alwaysShowTitle = false,
this.headerExpandedHeight = 0.35,
this.expandedHeader = const SizedBox(),
this.expandedHeaderBottomBar,
this.backgroundColor,
this.appBarColor,
this.curvedBodyRadius = 20,
this.body = const [],
this.drawer,
this.fullyStretchable = false,
this.stretchTriggerOffset = 200,
this.expandedBody,
this.stretchMaxHeight = 0.9,
this.bottomSheet,
this.bottomNavigationBarHeight = kBottomNavigationBarHeight,
this.bottomNavigationBar,
this.floatingActionButton,
this.floatingActionButtonLocation,
this.floatingActionButtonAnimator,
this.physics,
this.controller,
this.onRefresh,
this.refreshTriggerMode = RefreshIndicatorTriggerMode.onEdge,
this.refreshBackColor,
this.refreshColor,
this.refreshDisplacement = 40.0,
this.refreshStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth})
: assert(headerExpandedHeight > 0.0 &&
headerExpandedHeight < stretchMaxHeight),
assert(
(stretchMaxHeight > headerExpandedHeight) && (stretchMaxHeight < .95),
);