SlickView class

Prvoide dynamic slick functionality to your app

Inheritance

Constructors

SlickView.new({required SlickController slickController, required IndexedWidgetBuilder itemBuilder, required int itemCount, Widget? nextWidget, Widget? previousWidget, bool showPrevious = true, bool showNext = true, bool infiniteScroll = false, bool fixedWidth = false, double? itemWidth, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear, int initialPage = 0, double itemSpace = 16, double actionWidgetWith = 45, double actionSpace = 16, double viewportFraction = 1, bool keepPage = true, Key? key})
initialize the slickview
const
SlickView.builder({required SlickController slickController, required IndexedWidgetBuilder itemBuilder, required int itemCount, Widget? nextWidget, Widget? previousWidget, bool showPrevious = true, bool showNext = true, bool infiniteScroll = false, bool fixedWidth = false, double? itemWidth, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear, int initialPage = 0, double itemSpace = 16, double actionWidgetWith = 45, double actionSpace = 16, double viewportFraction = 1, bool keepPage = true, Key? key})
initialize the view with builder
const

Properties

actionSpace double
space between main view and action widget like next and previous button
final
actionWidgetWith double
width of the action button
final
curve Curve
Curve for the slide animationj
final
duration Duration
The duration and curve arguments must not be null.
final
fixedWidth bool
Provide true if your carousal item has fixed width for each element
final
hashCode int
The hash code for this object.
no setterinherited
infiniteScroll bool
Provide true if your carousal has infinite scroll
final
initialPage int
The page to show when first creating the PageView.
final
itemBuilder IndexedWidgetBuilder
Item builder for the SlickView
final
itemCount int
Providing a non-null itemCount lets the PageView compute the maximum scroll extent.
final
itemSpace double
space between two item
final
itemWidth double?
width of the item if each item have fix width
final
keepPage bool
Save the current page with PageStorage and restore it if this controller's scrollable is recreated.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nextWidget Widget?
Widget for the next button
final
previousWidget Widget?
Widget for the previous button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showNext bool
controll visibility for the next button
final
showPrevious bool
controll visibility for the previous button
final
slickController SlickController
SlickController for the view
final
viewportFraction double
The fraction of the viewport that each page should occupy.
final

Methods

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