You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,7 +26,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency:
24
26
```yaml
25
27
dependencies:
26
28
...
27
-
flutter_staggered_grid_view: "^0.1.4"
29
+
flutter_staggered_grid_view: "^0.2.0"
28
30
```
29
31
30
32
In your library add the following import:
@@ -65,6 +67,15 @@ You can find more examples in the [Example](https://github.com/letsar/flutter_st
65
67
The `StaggeredGridView` follow the same constructors convention than the [GridView](https://docs.flutter.io/flutter/widgets/GridView-class.html).
66
68
There are two more constructors: `countBuilder` and `extentBuilder`. These constructors allow you to define a builder for the layout and a builder for the children.
67
69
70
+
## Tiles
71
+
A StaggeredGridView needs to know how to display each tile, and what widget is associated with a tile.
72
+
73
+
A tile needs to have a fixed number of cell to occupy in the cross axis.
74
+
For the extent in the main axis you have 3 options:
75
+
* You want a fixed number of cells => use `StaggeredTile.count`.
76
+
* You want a fixed extent => use `StaggeredTile.extent`.
77
+
* You want a variable extent, defined by the content of the tile itself => use `StaggeredTile.fit`.
78
+
68
79
## Changelog
69
80
70
81
Please see the [Changelog](https://github.com/letsar/flutter_staggered_grid_view/blob/master/CHANGELOG.md) page to know what's recently changed.
@@ -74,4 +85,4 @@ Please see the [Changelog](https://github.com/letsar/flutter_staggered_grid_view
74
85
Feel free to contribute to this project.
75
86
76
87
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue](https://github.com/letsar/flutter_staggered_grid_view/issues).
77
-
If you fixed a bug or implemented a new feature, please send a [pull request](https://github.com/letsar/flutter_staggered_grid_view/pulls).
88
+
If you fixed a bug or implemented a new feature, please send a [pull request](https://github.com/letsar/flutter_staggered_grid_view/pulls).
0 commit comments