dynamic_height_grid_view 0.0.4 copy "dynamic_height_grid_view: ^0.0.4" to clipboard
dynamic_height_grid_view: ^0.0.4 copied to clipboard

GridView with dynamic height. No need to specify aspectRatio to the grid.

dynamic_height_grid_view #

pub package License: MIT

GridView with dynamic height. No need to use aspectRatio.

Usage #

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: DynamicHeightGridView(
        itemCount: 120,
        crossAxisCount: 3,
        crossAxisSpacing: 10,
        mainAxisSpacing: 10,
        builder: (ctx, index) {
          /// return your widget here.
        }
      ),
    );
  }
}
  • Use SliverDynamicHeightGridView for CustomScrollView
103
likes
150
points
10.4k
downloads

Publisher

verified publisherbookm.me

Weekly Downloads

GridView with dynamic height. No need to specify aspectRatio to the grid.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dynamic_height_grid_view