GlassPinnedBarChrome constructor

const GlassPinnedBarChrome({
  1. Key? key,
  2. required GlassPinnedBarChromeBuilder builder,
  3. List<GlassBarItem> leading = const <GlassBarItem>[],
  4. List<GlassBarItem> actions = const <GlassBarItem>[],
  5. bool backButton = true,
  6. bool leadingItemsSupplementBackButton = false,
  7. VoidCallback? onBack,
  8. double? buttonSize,
  9. double? toolbarHeight,
  10. LiquidGlassSettings? buttonSettings,
  11. double? horizontalInset,
  12. bool platformViewBackdrop = false,
  13. GlassLargeTitleController? largeTitleController,
  14. double? stripRowTop,
  15. bool enabled = true,
})

Creates a registrant that pins leading, actions and an automatic back button.

Implementation

const GlassPinnedBarChrome({
  super.key,
  required this.builder,
  this.leading = const <GlassBarItem>[],
  this.actions = const <GlassBarItem>[],
  this.backButton = true,
  this.leadingItemsSupplementBackButton = false,
  this.onBack,
  this.buttonSize,
  this.toolbarHeight,
  this.buttonSettings,
  this.horizontalInset,
  this.platformViewBackdrop = false,
  this.largeTitleController,
  this.stripRowTop,
  this.enabled = true,
})  : assert(buttonSize == null || buttonSize > 0),
      assert(toolbarHeight == null || toolbarHeight >= 0);