Onyxsio Grid View
Provides a Flutter grids layout.
pubspec.yaml of your flutter project, add the following dependency:
dependencies: onyxsio_grid_view: <latest_version>
In your library add the following import:
For help getting started with Flutter, view the online documentation.
This layout facilitates the browsing of uncropped peer content. Container heights are sized based on the widget size.
Below you'll find the code to create this grid layout:
OnyxsioGridView.builder( padding: EdgeInsets.all(8), itemCount: 20, physics: const BouncingScrollPhysics(), staggeredTileBuilder: (index) => const StaggeredTile.fit(2), crossAxisCount: 4, addAutomaticKeepAlives: false, mainAxisSpacing: 10, crossAxisSpacing: 10, shrinkWrap: true, itemBuilder: (context, index) => OnyxsioGridTile( index: index, heightList: [300, 220, 220, 520], child: child, ), )
I'm working on my packages on my free-time, but I don't have as much time as I would. If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.
Feel free to contribute to this project.