BasePage constructor

const BasePage({
  1. Key? key,
  2. required Widget child,
  3. String? lightBackgroundAsset,
  4. String? darkBackgroundAsset,
  5. PreferredSizeWidget? appBar,
  6. Widget? floatingActionButton,
  7. FloatingActionButtonLocation? floatingActionButtonLocation,
  8. Widget? bottomNavigationBar,
  9. Widget? bottomSheet,
  10. Widget? drawer,
  11. Widget? endDrawer,
  12. Color? backgroundColor,
  13. bool? resizeToAvoidBottomInset,
  14. bool extendBody = false,
  15. bool extendBodyBehindAppBar = false,
  16. bool useSafeArea = true,
  17. EdgeInsetsGeometry? contentPadding,
  18. bool fillChildMaxHeight = false,
  19. bool disableScroll = false,
  20. ScrollController? scrollController,
  21. ScrollPhysics? scrollPhysics,
  22. bool enableAutoScrollPhysics = true,
  23. bool canPop = true,
  24. FutureOr<bool> onWillPop()?,
  25. EasyRefreshConfig? easyRefreshConfig,
})

Implementation

const BasePage({
  super.key,
  required this.child,
  this.lightBackgroundAsset,
  this.darkBackgroundAsset,
  this.appBar,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.drawer,
  this.endDrawer,
  this.backgroundColor,
  this.resizeToAvoidBottomInset,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.useSafeArea = true,
  this.contentPadding,
  this.fillChildMaxHeight = false,
  this.disableScroll = false,
  this.scrollController,
  this.scrollPhysics,
  this.enableAutoScrollPhysics = true,
  this.canPop = true,
  this.onWillPop,
  this.easyRefreshConfig,
});