CollapsingToolbar class
It helps you in creating a Romantic Collapsing Toolbar. This widget is created to be able to standalone with any views, helps you able to add it into any complex ScrollView or ListView.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CollapsingToolbar
Constructors
-
CollapsingToolbar({Key? key, required ScrollController controller, required double expandedHeight, required double collapsedHeight, required dynamic onCollapsing(double offset), Curve animationCurve = Curves.easeIn, Widget? leading, Widget? title, List<
Widget> ? actions, required Widget featureIconBuilder(BuildContext context, int index), required Widget featureLabelBuilder(BuildContext context, int index), required int featureCount, ButtonStyle? featureButtonStyle, double featureCollapsedFactor = 0.6, required dynamic featureOnPressed(BuildContext context, int index), double horizontalPadding = 12, double verticalPadding = 12, Color decorationBackgroundColor = _kDefaultBackgroundColor, Color decorationForegroundColor = _kDefaultForegroundColor, bool useDefaultDecoration = true}) -
Create a CollapsingToolbar.
const
Properties
-
actions
→ List<
Widget> ? -
final
- animationCurve → Curve
-
final
- collapsedHeight → double
-
final
- controller → ScrollController
-
final
- decorationBackgroundColor → Color
-
final
- decorationForegroundColor → Color
-
final
- expandedHeight → double
-
final
- featureButtonStyle → ButtonStyle?
-
final
- featureCollapsedFactor → double
-
final
- featureCount → int
-
final
- featureIconBuilder → Widget Function(BuildContext context, int index)
-
final
- featureLabelBuilder → Widget Function(BuildContext context, int index)
-
final
- featureOnPressed → dynamic Function(BuildContext context, int index)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalPadding → double
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
final
- onCollapsing → dynamic Function(double offset)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
final
- useDefaultDecoration → bool
-
final
- verticalPadding → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CollapsingToolbarState -
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