expanding_cards library

Classes

DragToShrink
A widget that shrinks when on drag down. It doesn't matter if you are dragging directly on the widget or not, the effect is the same.
ExpandingCard
Displays the trip with an item or something else
FixedSliverOverlapHandle
HeroAnimation
HeroBar
A bar (top or bottom) that knows how to resize during hero transition
HeroBarWidget
HeroHints
HeroText
HeroWithChild

Typedefs

BuildExpandedCard = Widget Function(BuildContext context)
ExpandedCardWrapper = Widget Function(BuildContext context, Widget? child)
Used to decorate the expanded card
ExpandingCardCallback<R> = R Function(BuildContext context, BuildExpandedCard builder)
High order function that provide a mechanism to build the expanded card. Could be used in an onTap handler to customize the route, eg: onTap: (context, buildExpandedCard) { Navigator.of(context).push( ExpandingCardRoute( fullscreenDialog: true, maintainState: true, builder: (context) { return buildExpandedCard(context); }, ) );
HeaderBuilder = Widget Function(BuildContext context, ScrollController? scroller, NavigatorState state)
HeroHintsBuilder = Widget Function(BuildContext context, HeroAnimation heroInfo)
ResizeDecorator = Widget Function(Widget widget)
Wraps the resizing widget
RouteCreator = Route Function(BuildContext context, WidgetGetter child, double distance)
StretchCallback = Future<bool> Function(BuildContext context)
Returns true/false to determine whether the widget should continue checking for stretch threshold.
TextBuilder = Text Function(TextStyle? style)
WidgetGetter = Widget Function(BuildContext context)
WidgetListGetter = List<Widget> Function(BuildContext context)