FixedWidthVaryingHeightLayout class

Layouts a sliver grid with a fixed with but height that depends on the image

Inheritance

Constructors

FixedWidthVaryingHeightLayout(int columns, double columnWidth, double spacing, GiphySource source)
Creates a new sliver grid layout

Properties

columns → int
The number of columns
final
columnWidth → double
The width for each column
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → GiphySource
The image source
final
spacing → double
The spacing between images
final

Methods

computeMaxScrollOffset(int childCount) → double
The scroll extent needed to fully display all the tiles if there are childCount children in total.
override
getGeometryForChildIndex(int index) → SliverGridGeometry
The size and position of the child with the given index.
override
getMaxChildIndexForScrollOffset(double scrollOffset) → int
The maximum child index that intersects with (or is before) this scroll offset.
override
getMinChildIndexForScrollOffset(double scrollOffset) → int
The minimum child index that intersects with (or is after) this scroll offset.
override
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