Last updated:
0 purchases
flutter grid delegate ext
Simple SliverGridDelegate extension #
Simple SliverGridDelegate extension, Height of big cell and small cell can be adjusted, BigCellHeight >= SmallCellHeight.
Installation #
Add dependency in pubspec.yaml:
dependencies:
flutter_grid_delegate_ext: "^0.0.2"
copied to clipboard
Import in your project:
import 'package:flutter_grid_delegate_ext/flutter_grid_delegate_ext.dart';
copied to clipboard
Basic usage #
Unequal cells height with first cell small
GridView.builder(
gridDelegate: XSliverGridDelegate(
crossAxisCount: 3,
smallCellExtent: 100,
bigCellExtent: 200,
mainAxisSpacing: 5,
crossAxisSpacing: 5,
isFirstCellBig: false
)
)
copied to clipboard
Unequal cells height with first cell big
GridView.builder(
gridDelegate: XSliverGridDelegate(
crossAxisCount: 3,
smallCellExtent: 100,
bigCellExtent: 200,
mainAxisSpacing: 5,
crossAxisSpacing: 5,
isFirstCellBig: true
)
)
copied to clipboard
Equal cells height
GridView.builder(
gridDelegate: XSliverGridDelegate(
crossAxisCount: 3,
smallCellExtent: 200,
bigCellExtent: 200,
mainAxisSpacing: 5,
crossAxisSpacing: 5,
)
)
copied to clipboard
Examples #
example project contains demo
Bugs/Requests #
Reporting issues and requests for new features are always welcome.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.