ListVisualisation class

Gives a SnappyListView different visualisation methods.

Constructors

ListVisualisation.carousel({double scalePerUnit = 400, double wheelPixelRadius = 400})
Displays items in an SnappyListView like a carousel. The intensity of depth perception can be configured with scalePerUnit and the perception of rotation with wheelPixelRadius (radius of the 3d carousel)
ListVisualisation.custom(ListVisualisationParameters _parameters(VisualisationItem item))
Create you own custom visualisation behavior. Note: It is appreciated to create a pull request to add your behavior to the package.
ListVisualisation.enlargement({double horizontalMultiplier = 1.5, double verticalMultiplier = 1.5})
Enlarges items in an SnappyListView when they are the current page. The multiplication can be configured in vertical and horizontal percentage. If no enlargement in one direction is wished the it should equal 1.
ListVisualisation.normal()
Displays all items like a normal list.
ListVisualisation.perspective({double rotation = 50, double scalePerUnit = 400, bool warp3d = true})
Displays items in an SnappyListView with a perception perspective. The parameters rotation configures how intense the depth perception is supposed to be. If the rotation is bigger than 0 the perspective is shown on the right and if its lower than 0 perspective is on the left side. If rotation equals 0, no change to the list will be applied. The intensity of depth perception can be configured with scalePerUnit
ListVisualisation.wheel({double wheelPixelRadius = 600})
Displays items in an SnappyListView like a wheel. The size of the wheel can be configured by wheelPixelRadius. If the wheel radius is below 0 the wheel gets mirrored.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(VisualisationItem item) → ListVisualisationParameters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited