FacioScaffold constructor
const
FacioScaffold({
- Key? key,
- required Widget child,
- List<
Widget> ? appBarActions, - bool hasBackButton = true,
- bool hasAppBarLogo = false,
- Color appBarColor = Colors.transparent,
- Widget? appBarLeading,
- VoidCallback? appBarLogoutOnPressed,
- Color? appBarShadowColor,
- Widget? appBarTitle,
- Color canvasColor = ColorPalette.baseWhite,
- EdgeInsets canvasPadding = EdgeInsets.zero,
- double elevation = 0.0,
- bool keyboardPushScreen = true,
- VoidCallback? onBackPressed,
Implementation
const FacioScaffold({
final Key? key,
required final Widget child,
final List<Widget>? appBarActions,
final bool hasBackButton = true,
final bool hasAppBarLogo = false,
final Color appBarColor = Colors.transparent,
final Widget? appBarLeading,
final VoidCallback? appBarLogoutOnPressed,
final Color? appBarShadowColor,
final Widget? appBarTitle,
final Color canvasColor = ColorPalette.baseWhite,
final EdgeInsets canvasPadding = EdgeInsets.zero,
final double elevation = 0.0,
final bool keyboardPushScreen = true,
final VoidCallback? onBackPressed,
}) : assert(hasBackButton || (!hasBackButton && onBackPressed == null)),
assert((hasAppBarLogo && appBarTitle == null) ||
(!hasAppBarLogo && appBarTitle != null)),
_child = child,
_appBarActions = appBarActions,
_hasBackButton = hasBackButton,
_hasAppBarLogo = hasAppBarLogo,
_appBarColor = appBarColor,
_appBarLeading = appBarLeading,
_appBarLogoutOnPressed = appBarLogoutOnPressed,
_appBarShadowColor = appBarShadowColor,
_appBarTitle = appBarTitle,
_canvasColor = canvasColor,
_canvasPadding = canvasPadding,
_elevation = elevation,
_keyboardPushScreen = keyboardPushScreen,
_onBackPressed = onBackPressed,
super(key: key);