import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';

/// Class only use in order to give access to StaggeredTile to users
class ScaledTile extends StaggeredTile {
  /// Creates a [ScaledTile] with the given [crossAxisCellCount] that
  /// fit its main axis extent to its content.
  ///
  /// This tile will have a fixed main axis extent.
  ScaledTile.fit(
    int crossAxisCellCount,
  ) : super.fit(crossAxisCellCount);

  /// Creates a [ScaledTile] with the given [crossAxisCellCount] and
  /// [mainAxisExtent].
  ///
  /// This tile will have a fixed main axis extent.
  ScaledTile.extent(
    int crossAxisCellCount,
    double mainAxisExtent,
  ) : super.extent(crossAxisCellCount, mainAxisExtent);

  /// Creates a [ScaledTile] with the given [crossAxisCellCount] and
  /// [mainAxisCellCount].
  ///
  /// The main axis extent of this tile will be the length of
  /// [mainAxisCellCount] cells (inner spacings included).
  ScaledTile.count(
    int crossAxisCellCount,
    num mainAxisCellCount,
  ) : super.count(crossAxisCellCount, mainAxisCellCount as double);
}
