LunaGao / flag_flutter

flag icons
https://pub.dev/packages/flag
BSD 2-Clause "Simplified" License
63 stars 60 forks source link

Add rounded flags as well #58

Closed vanlooverenkoen closed 2 years ago

vanlooverenkoen commented 3 years ago

Something like this:

image

Rohithgilla12 commented 2 years ago

@vanlooverenkoen You can wrap it around with ClipRRect

Something like this

ClipRRect(
    borderRadius:
        BorderRadius.circular(AppDimensions.mainSpace),
    child: Flag.fromCode(
      FlagsCode.US,
      height: 32,
      width: 32,
      fit: BoxFit.fill,
    ),
  ),
vanlooverenkoen commented 2 years ago

Yes but that would not work for every flag. It will cut off parts of the flag that are important for some countries. (custom rounded icons would be the better solution in my opinion)

LunaGao commented 2 years ago

fixed in v6.0.0