XScreen constructor

const XScreen({
  1. required Widget body,
  2. Key? key,
  3. PreferredSizeWidget? appBar,
  4. Color? backgroundColor,
  5. Widget? floatingActionButton,
  6. FloatingActionButtonLocation? floatingActionButtonLocation,
  7. Widget? bottomNavigationBar,
  8. Widget? drawer,
  9. Widget? endDrawer,
  10. bool safeArea = true,
  11. bool safeAreaTop = true,
  12. bool safeAreaBottom = true,
  13. bool dismissKeyboardOnTap = true,
  14. EdgeInsetsGeometry? padding,
  15. double? maxContentWidth,
  16. bool isLoading = false,
  17. WidgetBuilder? loadingBuilder,
  18. Color loadingBarrierColor = const Color(0x66000000),
  19. Object? error,
  20. XScreenErrorBuilder? errorBuilder,
  21. VoidCallback? onRetry,
  22. bool? resizeToAvoidBottomInset,
  23. bool extendBody = false,
  24. bool extendBodyBehindAppBar = false,
})

Implementation

const XScreen({
  required this.body,
  super.key,
  this.appBar,
  this.backgroundColor,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.bottomNavigationBar,
  this.drawer,
  this.endDrawer,
  this.safeArea = true,
  this.safeAreaTop = true,
  this.safeAreaBottom = true,
  this.dismissKeyboardOnTap = true,
  this.padding,
  this.maxContentWidth,
  this.isLoading = false,
  this.loadingBuilder,
  this.loadingBarrierColor = const Color(0x66000000),
  this.error,
  this.errorBuilder,
  this.onRetry,
  this.resizeToAvoidBottomInset,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
});