RootSplashLayout constructor

const RootSplashLayout({
  1. Key? key,
  2. required String title,
  3. required Widget body,
  4. Widget? splash,
  5. Decoration? background,
  6. double splashScale = 1.0,
  7. bool rightAlignedSplash = false,
  8. double bodyMinWidth = 0.0,
  9. double? bodyMaxWidth,
  10. double minWidthToShowSplash = double.infinity,
  11. bool splashSeperator = false,
  12. 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;