GlassNavBarRegistration constructor
const
GlassNavBarRegistration({
- required List<
GlassBarItem> actions, - List<
GlassBarItem> leading = const <GlassBarItem>[], - required bool showsBackButton,
- VoidCallback? onBack,
- LiquidGlassSettings? buttonSettings,
- double? buttonSize,
- double? toolbarHeight,
- @Deprecated('A hoisted sheet item presents out of the hoisted capsule; the tap is ' 'no longer handed back.') void presentSheet(
- GlassBarSheetItem item
- double? horizontalInset,
- bool platformViewBackdrop = false,
- GlassLargeTitleController? largeTitleController,
- double? stripRowTop,
Creates a registration describing one route's pinned bar chrome.
Implementation
const GlassNavBarRegistration({
required this.actions,
this.leading = const <GlassBarItem>[],
required this.showsBackButton,
this.onBack,
this.buttonSettings,
this.buttonSize,
this.toolbarHeight,
@Deprecated(
'A hoisted sheet item presents out of the hoisted capsule; the tap is '
'no longer handed back.',
)
this.presentSheet,
this.horizontalInset,
this.platformViewBackdrop = false,
this.largeTitleController,
this.stripRowTop,
}) : assert(
buttonSize == null || buttonSize > 0,
'buttonSize must be positive',
),
assert(
toolbarHeight == null || toolbarHeight >= 0,
'toolbarHeight must not be negative',
);