flutter_grid_delegate_ext

Last updated:

0 purchases

flutter_grid_delegate_ext Image
flutter_grid_delegate_ext Images
Add to Cart

Description:

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.