ExpandableAnimatedCard class

Inheritance

Constructors

ExpandableAnimatedCard({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOutCubic, 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, Color? backgroundColor = const Color(0xFF5D5D5D), Gradient? backgroundGradient, Color? borderColor, double borderWidth = 1.0, BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(20)), double elevation = 4.0, Color? shadowColor, HeaderMode headerMode = HeaderMode.overlay, double headerHeight = 40.0, Color overlayBackgroundColor = Colors.black54, double blurSigma = 0.0, 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, bool useRootNavigator = false, RouteSettings? routeSettings, String? barrierLabel, Clip clipBehavior = Clip.antiAlias, ExpandableAnimatedCardController? controller, bool autoOpenOnTap = true})
Default constructor — allows full customization.
const
ExpandableAnimatedCard.fullscreen({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOutCubic, Color overlayBackgroundColor = Colors.black54, double blurSigma = 0.0, Color barrierColor = Colors.transparent, bool barrierDismissible = true, bool useRootNavigator = false, RouteSettings? routeSettings, String? barrierLabel, VoidCallback? onClose, VoidCallback? onOpened, VoidCallback? onClosed, ValueChanged<bool>? onStateChanged, ExpandableAnimatedCardController? controller, bool autoOpenOnTap = true})
Factory: fullscreen
const
ExpandableAnimatedCard.menu({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(16)), Color? backgroundColor = Colors.white, double elevation = 8.0, Color? shadowColor, double menuWidth = 250.0, double menuHeight = 300.0, double menuOffset = 8.0, Alignment menuAlignment = Alignment.topCenter, Color overlayBackgroundColor = Colors.black12, double blurSigma = 0.0, bool barrierDismissible = true, bool useRootNavigator = false, RouteSettings? routeSettings, String? barrierLabel, Duration animationDuration = const Duration(milliseconds: 300), Curve animationCurve = Curves.easeOutCubic, VoidCallback? onClose, VoidCallback? onOpened, VoidCallback? onClosed, ValueChanged<bool>? onStateChanged, ExpandableAnimatedCardController? controller, bool autoOpenOnTap = true})
Factory: menu
const
ExpandableAnimatedCard.sheet({Key? key, required WidgetBuilder collapsedBuilder, required WidgetBuilder expandedBuilder, BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(20)), EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(16, 16, 16, 16), Color? backgroundColor = const Color(0xFF5D5D5D), double elevation = 8.0, Color? shadowColor, double? maxHeight, double? maxHeightFraction, double? dragDismissThresholdFraction, Color overlayBackgroundColor = Colors.black54, double blurSigma = 0.0, Color barrierColor = Colors.transparent, bool dragToClose = true, double dragDismissThreshold = 120.0, bool barrierDismissible = true, bool useRootNavigator = false, RouteSettings? routeSettings, String? barrierLabel, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOutCubic, VoidCallback? onClose, VoidCallback? onOpened, VoidCallback? onClosed, ValueChanged<bool>? onStateChanged, ExpandableAnimatedCardController? controller, bool autoOpenOnTap = true})
Factory: sheet
const

Properties

animationCurve Curve
final
animationDuration Duration
final
autoOpenOnTap bool
final
backgroundColor Color?
final
backgroundGradient Gradient?
final
barrierColor Color
final
barrierDismissible bool
final
barrierLabel String?
final
blurSigma double
final
borderColor Color?
final
borderRadius BorderRadiusGeometry?
final
borderWidth double
final
clipBehavior Clip
final
collapsedBuilder WidgetBuilder
final
controller ExpandableAnimatedCardController?
final
dragDismissThreshold double
final
elevation double
final
enableDragToDismiss bool
final
expandedBuilder WidgetBuilder
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
final
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
shadowColor Color?
final
useRootNavigator bool
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