ChicoLargeTitle class

Compact bar plus a large start-aligned title that lives in the scroll view. The compact title fades in as the large title scrolls away.

child should not be a scroll view — this widget wraps it.

ChicoLargeTitle(
  title: 'Inbox',
  trailing: ChicoBarButton(
    icon: const ChicoGlyph(ChicoGlyphKind.add),
    tooltip: 'Add',
    onPressed: onAdd,
  ),
  child: list,
)
Inheritance

Constructors

ChicoLargeTitle({Key? key, required String title, required Widget child, Widget? leading, Widget? trailing, VoidCallback? onBack, bool automaticallyImplyLeading = true, bool safeArea = true, Color? backgroundColor, Widget? search})
Creates a collapsing large-title page.
const

Properties

automaticallyImplyLeading → bool
When true (default) and leading is null, shows a back chevron if onBack is set or the navigator can pop.
final
backgroundColor → Color?
Fill behind the bar and body. null uses the bar default.
final
child → Widget
Page body, laid out under the large title inside a scroll view.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
Start-side control on the compact bar.
final
onBack → VoidCallback?
Shown as a back chevron when leading is null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeArea → bool
When true (default), the compact bar pads the status-bar inset.
final
Optional search well under the large title (typically ChicoSearch).
final
title → String
Title for the large heading and the compact bar.
final
trailing → Widget?
End-side control on the compact bar.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<ChicoLargeTitle>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited