cedvdb / flutter_circle_flags

Circular flags for flutter
https://pub.dev/packages/circle_flags
MIT License
11 stars 22 forks source link

class Flags to use as enum #30

Closed Alexqwesa closed 1 year ago

Alexqwesa commented 1 year ago

class Flags to use as enum

Alexqwesa commented 1 year ago

btw, fixed description in last commit: https://github.com/cedvdb/flutter_circle_flags/pull/30/commits/ea0a2060be9c08c448b44d241d795c3c7d2ea1f0

cedvdb commented 1 year ago

How were those strings generated is there a script to rebuild it when new files are added ?

Alexqwesa commented 1 year ago

How were those strings generated is there a script to rebuild it when new files are added ?

yes, I have used build package to generate it, I will make new pull request later...

Please regard this as a proposal for your consideration...

cedvdb commented 1 year ago

Please regard this as a proposal for your consideration...

I'm not sure I understand what you meant by this :) But yeah I just wonder if it's going to be used and therefor worth adding. Maybe ? It's certainly nice for those who want to use one flag.

I figured most people would use this dynamically but maybe that's just my use case. IE: I personally use it like this

for (final country in countries)
   CircleFlag(country.isoCode)