Add tests for sliver grid delegate with fixed cross axis count examples (#153500)

Contributes to https://github.com/flutter/flutter/issues/130459

It adds a test for
- `examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0.dart`
- `examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1.dart`

I also fixed a mistake in the documentation
This commit is contained in:
Valentin Vignal
2024-08-30 05:41:21 +08:00
committed by GitHub
parent 8f80d14e35
commit 15904ef9be
4 changed files with 45 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class SliverGridDelegateWithFixedCrossAxisCountExample extends StatelessWidget {
return GridView(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 4,
childAspectRatio: 0.5,
childAspectRatio: 2,
),
children: List<Widget>.generate(20, (int i) {
return Builder(builder: (BuildContext context) {