flutter_custom_utils 0.0.5 copy "flutter_custom_utils: ^0.0.5" to clipboard
flutter_custom_utils: ^0.0.5 copied to clipboard

outdated

this package is for utility support and code simplification for personal and commercial use

Use both 1 and 2 for a responsive gridview

  1. For responsive grid item count based on your static design width.

    crossAxisCount: getResCrosCountGrid(
        context: context,
        width: 180,
    ),
    
  2. For responsive grid item aspect ratio based on your static design height and width.

    childAspectRatio: getResGridRatio(
        context: context,
        height: 165,
        width: 180,
    ),
    
  3. 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 or width in both methods


  1. Get color from hash code

    CHColor.fromHex('#fffff')
    
  2. Get hash code from color

    CHColor(Color.fromRGBO(250, 250, 250, 0.1)).toHex()
    

15
likes
0
pub points
63%
popularity

Publisher

verified publisherrepad.dev

this package is for utility support and code simplification for personal and commercial use

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_custom_utils