RootSplashLayout constructor
const
RootSplashLayout({
- Key? key,
- required String title,
- required Widget body,
- Widget? splash,
- Decoration? background,
- double splashScale = 1.0,
- bool rightAlignedSplash = false,
- double bodyMinWidth = 0.0,
- double? bodyMaxWidth,
- double minWidthToShowSplash = double.infinity,
- bool splashSeperator = false,
- RootSplashState createRootSplashState() = _defaultRootSplashState,
Implementation
const RootSplashLayout({
super.key,
required this.title,
required this.body,
this.splash,
this.background,
this.splashScale = 1.0, // w.r.t. the width of the body
this.rightAlignedSplash = false,
this.bodyMinWidth = 0.0,
double? bodyMaxWidth,
this.minWidthToShowSplash = double.infinity,
this.splashSeperator = false,
this.createRootSplashState = _defaultRootSplashState,
}) : assert(
!splashSeperator || splash != null,
'splashSeperator was true but '
'no splash widget provided.',
),
bodyMaxWidth = bodyMaxWidth ?? minWidthToShowSplash,
breakColumns = splashScale + 1;