ExpandableAnimatedCard class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExpandableAnimatedCard
Constructors
-
ExpandableAnimatedCard({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOut, Interval fadeInterval = const Interval(0.35, 1.0, curve: Cubic(0.5, 0.0, 0.3, 1.0)), EdgeInsetsGeometry expandedMargin = const EdgeInsets.fromLTRB(16, 16, 16, 16), EdgeInsetsGeometry expandedPadding = const EdgeInsets.all(0), double? maxWidth, bool useSafeArea = true, BoxDecoration expandedDecoration = const BoxDecoration(color: Color(0xFF5D5D5D), borderRadius: BorderRadius.all(Radius.circular(20))), HeaderMode headerMode = HeaderMode.overlay, double headerHeight = 40.0, Color overlayBackgroundColor = Colors.black54, Widget scrimBuilder(BuildContext, Animation<
double> )?, Widget headerBuilder(BuildContext, VoidCallback )?, Color barrierColor = Colors.transparent, bool barrierDismissible = true, bool enableDragToDismiss = false, double dragDismissThreshold = 120.0, VoidCallback? onClose, VoidCallback? onOpened, VoidCallback? onClosed, ValueChanged<bool> ? onStateChanged, RouteSettings? routeSettings, String? barrierLabel, Clip clipBehavior = Clip.antiAlias, ExpandableAnimatedCardController? controller, bool autoOpenOnTap = true}) -
Public (free) constructor — allows full customization.
factory
- ExpandableAnimatedCard.fullscreen({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOut, Color overlayBackgroundColor = Colors.black54, Color barrierColor = Colors.transparent, bool barrierDismissible = true, RouteSettings? routeSettings, String? barrierLabel})
-
Factory: fullscreen
factory
-
ExpandableAnimatedCard.sheet({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, double corner = 20, EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(16, 16, 16, 16), Color color = const Color(0xFF5D5D5D), List<
BoxShadow> shadow = const [BoxShadow(blurRadius: 24, offset: Offset(0, 8), color: Colors.black26)], double? maxHeight, double? maxHeightFraction, double? dragDismissThresholdFraction, Color overlayBackgroundColor = Colors.black54, Color barrierColor = Colors.transparent, bool dragToClose = true, double dragDismissThreshold = 120.0, bool barrierDismissible = true, RouteSettings? routeSettings, String? barrierLabel}) -
Factory: sheet
factory
Properties
- animationCurve → Curve
-
final
- animationDuration → Duration
-
final
- autoOpenOnTap → bool
-
final
- barrierColor → Color
-
Color used by the route barrier (NOT the scrim). Default: fully transparent.
final
- barrierDismissible → bool
-
final
- barrierLabel → String?
-
final
- clipBehavior → Clip
-
final
- collapsedBuilder → WidgetBuilder
-
final
- controller → ExpandableAnimatedCardController?
-
final
- dragDismissThreshold → double
-
final
- enableDragToDismiss → bool
-
final
- expandedBuilder → WidgetBuilder
-
final
- expandedDecoration → BoxDecoration
-
final
- expandedMargin → EdgeInsetsGeometry
-
final
- expandedPadding → EdgeInsetsGeometry
-
final
- fadeInterval → Interval
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBuilder → Widget Function(BuildContext, VoidCallback )?
-
final
- headerHeight → double
-
final
- headerMode → HeaderMode
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxWidth → double?
-
final
- onClose → VoidCallback?
-
final
- onClosed → VoidCallback?
-
final
- onOpened → VoidCallback?
-
final
-
onStateChanged
→ ValueChanged<
bool> ? -
final
- overlayBackgroundColor → Color
-
final
- routeSettings → RouteSettings?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrimBuilder
→ Widget Function(BuildContext, Animation<
double> )? -
final
-
final
- useSafeArea → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ExpandableAnimatedCard> -
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