flexible_grid_view
0.0.2, released 4 years ago by egortabula.dev
A Flutter package that simplifies creating grid views without specifying fixed child heights.
WASM-ready
What it does
Simplifies the process of creating a grid view by allowing children widgets to have any height without needing to specify a fixed height or aspect ratio. It provides the FlexibleGridView widget with customizable row element counts, spacing, and scrolling parameters.
AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a grid view where children widgets have variable or dynamic heights.
- You want to avoid manually calculating or specifying child aspect ratios or fixed heights.
Skip it when
- You require complex staggered grid layouts available in other specialized packages.
- You need pagination or lazy loading of a massive dataset through builders.
Strengths
- Allows children widgets to have any height dynamically.
- Easy setup with simple configuration parameters like axisCount and spacing.
Weaknesses
- Limited built-in layouts represented by an enum with fixed options.
- Lacks a builder method for efficiently loading large lists of items.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
FlexibleGridView(
children: List.generate(
20,
(index) => Container(
color: Colors.blue,
height: 100,
),
),
axisCount: GridLayoutEnum.threeElementsInRow,
crossAxisSpacing: 8,
mainAxisSpacing: 8,
)Alternatives
Packages that do the same job and could replace flexible_grid_view.
- flutter_staggered_grid_view
For advanced, customizable staggered and multi-directional grid layouts with extensive builder support.
50Compare