DraggableHome constructor
const
DraggableHome({
- Key? key,
- Widget? leading,
- required Widget title,
- bool centerTitle = true,
- List<
Widget> ? actions, - bool alwaysShowLeadingAndAction = false,
- bool alwaysShowTitle = false,
- double headerExpandedHeight = 0.35,
- required Widget headerWidget,
- Widget? headerBottomBar,
- Color? backgroundColor,
- Color? appBarColor,
- double curvedBodyRadius = 20,
- required List<
Widget> body, - 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? scrollController,
This will create DraggableHome.
Implementation
const DraggableHome({
Key? key,
this.leading,
required this.title,
this.centerTitle = true,
this.actions,
this.alwaysShowLeadingAndAction = false,
this.alwaysShowTitle = false,
this.headerExpandedHeight = 0.35,
required this.headerWidget,
this.headerBottomBar,
this.backgroundColor,
this.appBarColor,
this.curvedBodyRadius = 20,
required this.body,
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.scrollController,
}) : assert(headerExpandedHeight > 0.0 &&
headerExpandedHeight < stretchMaxHeight),
assert(
(stretchMaxHeight > headerExpandedHeight) && (stretchMaxHeight < .95),
),
super(key: key);