smart_layout library

Classes

SmartCollectionLayout
A smart collection widget that automatically choose between a ListView and a GridView based on the available space and the number of items.
SmartLayoutBuilder
A convenient widget that computes SmartLayoutInfo for the current context and passes it into the builder.
SmartLayoutInfo
Immutable description of the current layout context.

Enums

CollectionLayoutType
The layout type chosen by SmartCollectionLayout.
DeviceType
Type of device inferred from the screen size.
LayoutDensity
Preffered layout density.
SizeClass
A coarse-grained size classification for the current layout.

Typedefs

SmartLayoutWidgetBuilder = Widget Function(BuildContext context, SmartLayoutInfo layout)