SwipeFeed<T> class

Inheritance

Constructors

SwipeFeed({Key? key, SwipeFeedBuilder<T>? childBuilder, InitialFeedState<T>? initialState, Widget? noItemsPlaceHolder, Widget? noConnectivityPlaceHolder, Widget? loadingPlaceHolder, Widget background(BuildContext context, Widget? child)?, Future<bool> onSwipe(double dx, double dy, DismissDirection direction, Duration duration, Future<void> (), T item)?, Future<void> onConinue(T? item)?, bool canExpand(dynamic)?, EdgeInsets? padding, Widget? mask, AnimationSystemDelegate? bottomDelegate, AnimationSystemDelegate? topDelegate, AnimationSystemDelegate? backgroundDelegate, AnimationSystemController? topAnimationSystemController, AnimationSystemController? bottomAnimationSystemController, bool showLastCard = true, dynamic onLoad(T? item)?, Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? simulationDelegate(BuildContext context, T? item, bool autoRun)?, required FeedLoader<T> loader, required String objectKey(T), required SwipeFeedController controller})
const

Properties

background → (Widget Function(BuildContext context, Widget? child)?)
Background of the card
final
backgroundDelegate AnimationSystemDelegate?
Background card without a child, delegate
final
bottomAnimationSystemController AnimationSystemController?
Functions to control the bottom delegate
final
bottomDelegate AnimationSystemDelegate?
Updatable view for animations
final
canExpand → (bool Function(dynamic)?)
Function tells the feed if the card can expand
final
childBuilder SwipeFeedBuilder<T>?
A builder for the feed
final
controller SwipeFeedController
Controller for the swipe feed
final
hashCode int
The hash code for this object.
no setterinherited
initialState InitialFeedState<T>?
If defined, then the refresh is not called on init and the feed state is provided
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loader FeedLoader<T>
A loader for the feed
final
loadingPlaceHolder Widget?
Loading card displayed when the feed is loading
final
mask Widget?
Widget builds on top of the card behind the current card
final
noConnectivityPlaceHolder Widget?
No Connectivity
final
noItemsPlaceHolder Widget?
No Polls
final
objectKey String Function(T)
Object Key
final
onConinue → (Future<void> Function(T? item)?)
When the next card is loading
final
onLoad → (dynamic Function(T? item)?)
final
onSwipe → (Future<bool> Function(double dx, double dy, DismissDirection direction, Duration duration, Future<void> (), T item)?)
The on swipe function, run when a card is swiped
final
padding EdgeInsets?
Padding applied to the Swipe Feed Has the option to animate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLastCard bool
If it should show the last placeHolder card
final
simulationDelegate → (Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? Function(BuildContext context, T? item, bool autoRun)?)
Gets the simulationDelegate
final
topAnimationSystemController AnimationSystemController?
Functions to controlls the top delegate
final
topDelegate AnimationSystemDelegate?
Update view for animations
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SwipeFeedState<T>
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