flutter_custom_utils 0.0.4 flutter_custom_utils: ^0.0.4 copied to clipboard
this package is for utility support and code simplification for personal and commercial use
#
Use
both 1 and 2
for aresponsive gridview
-
For responsive
grid item count
based on your static designwidth
.crossAxisCount: getResCrosCountGrid( context: context, width: 180, ),
-
For responsive grid item
aspect ratio
based on your static designheight
andwidth
.childAspectRatio: getResGridRatio( context: context, height: 165, width: 180, ),
-
For normal grid
aspect ratio
this will provide you aspect ratio whitch never barake in biger or smaller devise
crossAxisCount: 2, childAspectRatio: getGridRatio( crossAxisCount: 2, context: context, height: 165, width: 180, ),
Provide same
height
orwidth
in both methods