SwipeFeedCard<T> class
Constructors
-
SwipeFeedCard({Key? key, required String objectKey(T), required SwipeFeedCardController controller, required Tuple2<dynamic, Store<SwipeFeedCardState>> item, required bool isLast, required int index, Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? simulationDelegate()?, ConcreteCubit<List<AnimationSystemController>>? bloc, Widget? mask, Widget? loadingPlaceHolder, EdgeInsets? padding, bool canExpand(T)?, SwipeFeedBuilder<T>? childBuilder, Widget background(BuildContext context, Widget? child)?, dynamic onPanUpdate(double dx, double dy, bool trustSimulationRunning)?, Future<bool> onSwipe(double dx, double dy, Future<void> (), DismissDirection direction, Duration duration)?, Future<void> onContinue()?, AnimationSystemController? topAnimationSystemController, AnimationSystemController? bottomAnimationSystemController, AnimationSystemDelegate? backgroundDelegate, dynamic onLoad(T)?})
-
const
Properties
-
background
→ Widget Function(BuildContext context, Widget? child)?
-
Widget representing the last card in the list "Background Card"
final
-
backgroundDelegate
→ AnimationSystemDelegate?
-
Background card without a child, delegate
final
-
bloc
→ ConcreteCubit<List<AnimationSystemController>>?
-
final
-
bottomAnimationSystemController
→ AnimationSystemController?
-
Controls the bottom animation
final
-
canExpand
→ bool Function(T)?
-
If the card can take up the screen and go passed its bounds
final
-
childBuilder
→ SwipeFeedBuilder<T>?
-
Child of the card
final
-
controller
→ SwipeFeedCardController
-
Init controller
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
index
→ int
-
final
-
isLast
→ bool
-
If it is the last null card in the list
final
-
item
→ Tuple2<dynamic, Store<SwipeFeedCardState>>
-
Current item dispatched from the loader
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
loadingPlaceHolder
→ Widget?
-
Loading widget of the card, is called when the feed is in a loading state
final
-
mask
→ Widget?
-
The color of the mask of the next poll in the list
final
-
objectKey
→ String Function(T)
-
Object Key
final
-
onContinue
→ Future<void> Function()?
-
After forward animation has been called
final
-
onLoad
→ dynamic Function(T)?
-
final
-
onPanUpdate
→ dynamic Function(double dx, double dy, bool trustSimulationRunning)?
-
Callback for the updating position of the current card
final
-
onSwipe
→ Future<bool> Function(double dx, double dy, Future<void> (), DismissDirection direction, Duration duration)?
-
Callback for when the card has been dismissed from the screen before forward animation
final
-
padding
→ EdgeInsets?
-
Additional padding
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
simulationDelegate
→ Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? Function()?
-
Simulation Delegate
final
-
topAnimationSystemController
→ AnimationSystemController?
-
Controls the top animation
final