FirestoreAnimatedGrid<T> constructor
FirestoreAnimatedGrid<T> ({
- Key? key,
- required Query<
T> query, - required FirestoreAnimatedGridItemBuilder<
T> itemBuilder, - required int crossAxisCount,
- double mainAxisSpacing = 4.0,
- double crossAxisSpacing = 4.0,
- double childAspectRatio = 1.0,
- dynamic onLoaded(
- QuerySnapshot<
T>
- QuerySnapshot<
- dynamic filter,
- Widget? defaultChild,
- ErrorChildBuilder? errorChild,
- Widget? emptyChild,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool debug = false,
- bool linear = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsets? padding,
- Duration duration = const Duration(milliseconds: 300),
Creates a scrolling container that animates items when they are inserted or removed.
Implementation
FirestoreAnimatedGrid({
Key? key,
required this.query,
required this.itemBuilder,
required this.crossAxisCount,
this.mainAxisSpacing = 4.0,
this.crossAxisSpacing = 4.0,
this.childAspectRatio = 1.0,
this.onLoaded,
this.filter,
this.defaultChild,
this.errorChild,
this.emptyChild,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.debug = false,
this.linear = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding,
this.duration = const Duration(milliseconds: 300),
}) : assert(crossAxisCount > 0),
assert(mainAxisSpacing >= 0),
assert(crossAxisSpacing >= 0),
assert(childAspectRatio > 0),
super(key: key);