util/grid_utils library

Functions

cGetGridRatio({required BuildContext context, required int crossAxisCount, required int height, required int width, bool logData = false, double? discardSize}) double
Calculate the childAspectRatio for a GridView based on item dimensions and crossAxisCount.
cGetResCrossCountGrid({required BuildContext context, required int width, bool logData = false, double? discardSize}) int
Calculate the responsive crossAxisCount for a GridView based on item width.
cGetResGridRatio({required BuildContext context, required int height, required int width, bool logData = false, double? discardSize}) double
Calculate the responsive childAspectRatio for a GridView based on item dimensions.