A new Flutter project.
pubspec.yaml of your flutter project, add the following dependency:
dependencies: ... staggered_grid_view_flutter: <latest_version>
In your library add the following import:
For help getting started with Flutter, view the online documentation.
new StaggeredGridView.count( crossAxisCount: 4, staggeredTiles: _staggeredTiles, mainAxisSpacing: 4, crossAxisSpacing: 4, padding: const EdgeInsets.all(4), children: _tiles, ));