XScreen constructor
const
XScreen({
- required Widget body,
- Key? key,
- PreferredSizeWidget? appBar,
- Color? backgroundColor,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- Widget? drawer,
- Widget? endDrawer,
- bool safeArea = true,
- bool safeAreaTop = true,
- bool safeAreaBottom = true,
- bool dismissKeyboardOnTap = true,
- EdgeInsetsGeometry? padding,
- double? maxContentWidth,
- bool isLoading = false,
- WidgetBuilder? loadingBuilder,
- Color loadingBarrierColor = const Color(0x66000000),
- Object? error,
- XScreenErrorBuilder? errorBuilder,
- VoidCallback? onRetry,
- bool? resizeToAvoidBottomInset,
- bool extendBody = false,
- 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,
});