ExpandingCard class
Displays the trip with an item or something else
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExpandingCard
Constructors
- ExpandingCard({Key? key, double? dragToCloseThreshold = 30, dynamic expandedSection, dynamic collapsedSection, ObstructingPreferredSizeWidget? preHeader, ObstructingPreferredSizeWidget? header, dynamic flexTitle, dynamic headerLeading, dynamic headerTrailing, bool? isExpanded, PlatformCardTheme? theme, dynamic headerTitle, RouteCreator? buildRoute, String? discriminator, ExpandingCardCallback? onCardTap, bool pinFirst = false, ExpandedCardWrapper? expandedWrapper, bool showClose = false, double? headerHeight, Color backgroundColor = Colors.white, WidgetListGetter? alwaysShown})
-
const
Properties
- alwaysShown → WidgetListGetter?
-
A list of elements that are always displayed at the top of the card
final
- backgroundColor → Color
-
The background of the card
final
- buildRoute → RouteCreator?
-
Allows customization of RouteCreator
final
- collapsedSection → dynamic
-
A Widget or WidgetBuilder. This is displayed when the card
is in collapsed mode
final
- discriminator → String?
-
A unique id that identifies this card from otherss
final
- dragToCloseThreshold → double?
-
The distance to pull before the card collapses
final
-
Can be used to wrap the expanded card
final
- expandedSection → dynamic
-
A Widget or WidgetBuilder. This is displayed when the card
is in collapsed mode
final
- expandedWrapper → ExpandedCardWrapper?
-
Can be used to wrap the expanded card
final
- flexTitle → dynamic
-
final
-
The footer must be preferredSize in order to apply padding
properly
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → ObstructingPreferredSizeWidget?
-
A header that spans to the top of the screen
final
- headerHeight → double?
-
The first header provided will be put into the flexible space. This determines
the height of that flexible space.
final
- headerLeading → dynamic
-
final
- headerTitle → dynamic
-
final
- headerTrailing → dynamic
-
final
- isExpanded → bool?
-
Whether to display the already expanded widget
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
THe navigator used to expand this card - used when starting from teh expanded state.
final
- onCardTap → ExpandingCardCallback?
-
Called when the collapsed card is tapped. By default, this will
expand the card. If you need to override this behavior, make sure to
call the expanding card route. See BuildExpandedCard
final
- pinFirst → bool
-
final
- preHeader → ObstructingPreferredSizeWidget?
-
A header that spans to the top of the screen
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showClose → bool
-
Whether to show a close button
final
- theme → PlatformCardTheme?
-
A theme for the underlying card. You can also use a
Provider
to use global stylesfinal -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ExpandingCardState -
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
Constants
- kDefaultTransitionDuration → const Duration