createTile method

StaggeredGridTile createTile(
  1. T post,
  2. int w,
  3. int h
)

Creates a StaggeredGridTile for the given tile data and dimensions.

Uses QuiltTileKey for unique identification, integrating with tileBuilder for content rendering in quilts.

Implementation

StaggeredGridTile createTile(T post, int w, int h) {
  return StaggeredGridTile.count(
    key: QuiltTileKey(tileFaucet, post),
    crossAxisCellCount: w,
    mainAxisCellCount: h,
    child: tileBuilder(post),
  );
}