DraggableHome constructor

const DraggableHome({
  1. Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. bool centerTitle = true,
  5. List<Widget>? actions,
  6. bool alwaysShowLeadingAndAction = false,
  7. bool alwaysShowTitle = false,
  8. double headerExpandedHeight = 0.35,
  9. required Widget headerWidget,
  10. Widget? headerBottomBar,
  11. Color? backgroundColor,
  12. Color? appBarColor,
  13. double curvedBodyRadius = 20,
  14. required List<Widget> body,
  15. Widget? drawer,
  16. bool fullyStretchable = false,
  17. double stretchTriggerOffset = 200,
  18. Widget? expandedBody,
  19. double stretchMaxHeight = 0.9,
  20. Widget? bottomSheet,
  21. double? bottomNavigationBarHeight = kBottomNavigationBarHeight,
  22. Widget? bottomNavigationBar,
  23. Widget? floatingActionButton,
  24. FloatingActionButtonLocation? floatingActionButtonLocation,
  25. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  26. ScrollPhysics? physics,
  27. 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);