v0.0.4dynamic_height_grid_view
GridView with dynamic height. No need to specify aspectRatio to the grid.
113Likes 5.4K30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
santa112358/dynamic_height_grid_view open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0English project snapshot. Visit GitHub for the latest content.
GridView with dynamic height. No need to use aspectRatio.
https://user-images.githubusercontent.com/43510799/147405929-92e43203-5f52-48de-8fb9-fed1c7475db4.gifclass 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.
}
),
);
}
}
SliverDynamicHeightGridView for CustomScrollView