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. ScrollController? scrollController,
  20. ScrollPhysics? scrollPhysics,
  21. bool enableAutoScrollPhysics = true,
  22. bool canPop = true,
  23. FutureOr<bool> onWillPop()?,
  24. 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.scrollController,
  this.scrollPhysics,
  this.enableAutoScrollPhysics = true,
  this.canPop = true,
  this.onWillPop,
  this.easyRefreshConfig,
});