flutter_custom_utils 0.0.5
flutter_custom_utils: ^0.0.5 copied to clipboard
this package is for utility support and code simplification for personal and commercial use
Use
both 1 and 2for aresponsive gridview
-
For responsive
grid item countbased on your static designwidth.crossAxisCount: getResCrosCountGrid( context: context, width: 180, ), -
For responsive grid item
aspect ratiobased on your static designheightandwidth.childAspectRatio: getResGridRatio( context: context, height: 165, width: 180, ), -
For normal grid
aspect ratiothis 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
heightorwidthin both methods
-
Get color from hash code
CHColor.fromHex('#fffff') -
Get hash code from color
CHColor(Color.fromRGBO(250, 250, 250, 0.1)).toHex()