SwipeFeed<T> class
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