MorphingSliverAppBar class
An adapted version of SliverAppBar that morphs while navigating.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MorphingSliverAppBar
Constructors
-
MorphingSliverAppBar({Key? key, Object heroTag = 'MorphingAppBar', Widget? leading, bool automaticallyImplyLeading = true, Widget? title, List<
Widget> ? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, Color? shadowColor, Color? surfaceTintColor, bool forceElevated = false, Color? backgroundColor, Color? foregroundColor, IconThemeData? iconTheme, IconThemeData? actionsIconTheme, bool primary = true, bool? centerTitle, bool excludeHeaderSemantics = false, double? titleSpacing, double? collapsedHeight, double? expandedHeight, bool floating = false, bool pinned = false, bool snap = false, bool stretch = false, double stretchTriggerOffset = 100.0, AsyncCallback? onStretchTrigger, ShapeBorder? shape, double toolbarHeight = kToolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, SystemUiOverlayStyle? systemOverlayStyle, bool forceMaterialTransparency = false, Clip? clipBehavior}) -
Creates a material design app bar that can be placed in a CustomScrollView.
const
Properties
-
actions
→ List<
Widget> ? -
See SliverAppBar.actions.
final
- actionsIconTheme → IconThemeData?
-
See SliverAppBar.actionsIconTheme.
final
- automaticallyImplyLeading → bool
-
See SliverAppBar.automaticallyImplyLeading.
final
- backgroundColor → Color?
-
See SliverAppBar.backgroundColor.
final
- bottom → PreferredSizeWidget?
-
See SliverAppBar.bottom.
final
- centerTitle → bool?
-
See SliverAppBar.centerTitle.
final
- clipBehavior → Clip?
-
See SliverAppBar.clipBehavior.
final
- collapsedHeight → double?
-
See SliverAppBar.collapsedHeight.
final
- elevation → double?
-
See SliverAppBar.elevation.
final
- excludeHeaderSemantics → bool
-
See SliverAppBar.excludeHeaderSemantics.
final
- expandedHeight → double?
-
See SliverAppBar.expandedHeight.
final
- flexibleSpace → Widget?
-
See SliverAppBar.flexibleSpace.
final
- floating → bool
-
See SliverAppBar.floating.
final
- forceElevated → bool
-
See SliverAppBar.forceElevated.
final
- forceMaterialTransparency → bool
-
See SliverAppBar.forceMaterialTransparency.
final
- foregroundColor → Color?
-
See SliverAppBar.foregroundColor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heroTag → Object
-
Tag used for the internally created Hero widget.
final
- iconTheme → IconThemeData?
-
See SliverAppBar.iconTheme.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
See SliverAppBar.leading.
final
- leadingWidth → double?
-
See SliverAppBar.leadingWidth.
final
- onStretchTrigger → AsyncCallback?
-
See SliverAppBar.onStretchTrigger.
final
- pinned → bool
-
See SliverAppBar.pinned.
final
- primary → bool
-
See SliverAppBar.primary.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrolledUnderElevation → double?
-
See SliverAppBar.scrolledUnderElevation.
final
- shadowColor → Color?
-
See SliverAppBar.shadowColor.
final
- shape → ShapeBorder?
-
See SliverAppBar.shape.
final
- snap → bool
-
See SliverAppBar.snap.
final
- stretch → bool
-
See SliverAppBar.stretch.
final
- stretchTriggerOffset → double
-
See SliverAppBar.stretchTriggerOffset.
final
- surfaceTintColor → Color?
-
See SliverAppBar.surfaceTintColor.
final
- systemOverlayStyle → SystemUiOverlayStyle?
-
See SliverAppBar.systemOverlayStyle.
final
- title → Widget?
-
See SliverAppBar.title.
final
- titleSpacing → double?
-
See SliverAppBar.titleSpacing.
final
- titleTextStyle → TextStyle?
-
See SliverAppBar.titleTextStyle.
final
- toolbarHeight → double
-
See SliverAppBar.toolbarHeight.
final
- toolbarTextStyle → TextStyle?
-
See SliverAppBar.toolbarTextStyle.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MorphingSliverAppBar> -
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}) → 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