Open urusai88 opened 1 year ago
Hello! I put 8 widgets in grid, but gridview scrolls down for about 2x of all widgets height. On video, red and green containers is the last widgets
Hello! I put 8 widgets in grid, but gridview scrolls down for about 2x of all widgets height. On video, red and green containers is the last widgets
code
```dart return GridView.custom( shrinkWrap: true, cacheExtent: 0, gridDelegate: SliverQuiltedGridDelegate( repeatPattern: QuiltedGridRepeatPattern.mirrored, crossAxisCount: 2, crossAxisSpacing: 16, mainAxisSpacing: 16, pattern: [ QuiltedGridTile(1, 1), QuiltedGridTile(1, 1), QuiltedGridTile(1, 1), QuiltedGridTile(1, 1), QuiltedGridTile(1, 1), QuiltedGridTile(1, 1), QuiltedGridTile(1, 2), QuiltedGridTile(1, 2), ], ), childrenDelegate: SliverChildBuilderDelegate( (context, index) { if (index < mySafe.folders.length) { final folder = mySafe.folders[index]; return GestureDetector( behavior: HitTestBehavior.opaque, onTap: () { Navigator.push( context, MaterialPageRoute( builder: (_) => FolderView(folderId: folder.id), ), ); }, child: HomeTile(title: folder.name, description: folder.description), ); } else { if (index == mySafe.folders.length) { return const HomeNoteTile(); } else if (index == mySafe.folders.length + 1) { return const HomeTrashTile(); } } return null; }, ), ); ```video
https://user-images.githubusercontent.com/13536462/233797347-df1dbca2-15a9-4f5e-bd2e-ad36f31cc9c8.mp4