SunnyResponsivePage constructor

const SunnyResponsivePage({
  1. Key? key,
  2. dynamic body,
  3. HeroBar? expanded,
  4. bool useBody = false,
  5. bool isWhiteBg = false,
  6. dynamic pageTitle,
  7. bool cachePage = false,
  8. bool isContentPadding = true,
  9. Widget? leading,
  10. bool isImpliedLeading = true,
  11. double? headerHeight,
  12. List<Widget>? actions,
  13. bool showAppBarDivider = false,
  14. bool showTabBarWithKeyboard = false,
  15. bool hideAppBar = false,
  16. WidgetBuilder? fab,
  17. Color? appBarColor,
  18. ScrollController? scroller,
  19. DecorationImage? bgImage,
  20. Widget? underlay,
  21. Widget? overlay,
  22. AsyncCallback? onStretch,
  23. SunnyPageLayoutFactory? layout,
})

Implementation

const SunnyResponsivePage(
    {Key? key,
    this.body,
    this.expanded,
    this.useBody = false,
    this.isWhiteBg = false,
    this.pageTitle,
    this.cachePage = false,
    this.isContentPadding = true,
    this.leading,
    this.isImpliedLeading = true,
    this.headerHeight,
    this.actions,
    this.showAppBarDivider = false,
    this.showTabBarWithKeyboard = false,
    this.hideAppBar = false,
    this.fab,
    this.appBarColor,
    this.scroller,
    this.bgImage,
    this.underlay,
    this.overlay,
    this.onStretch,
    this.layout})
    : assert(pageTitle == null || pageTitle is String || pageTitle is Widget),
      assert(useBody != true || body is Widget),
      super(key: key);