rknell / flutterEnumsToString

Better conversion of ENUMs to string for Flutter / Dart
Other
85 stars 23 forks source link

converToString with camel case does not capitalize 2nd word #32

Open stiggy87 opened 3 years ago

stiggy87 commented 3 years ago

I started to notice in my enums, when I try to use this package with camelCase, it doesn't capitalize the 2nd word. This is annoying, and the documentation says it does.

enum Test { test, testOne, testTwo, testThree }
for (var item in Test.values)
    ListTile(title: Text(EnumToString.convertToString(item, camelCase: true)),
),

Prints out: image

vasilich6107 commented 2 years ago

Hi @stiggy87 I saw that you are using forms engine like flutter_auto_form Could give a try to reactive_forms(https://github.com/joanpablo/reactive_forms) + reacitve_forms_generator(https://github.com/artflutter/reactive_forms_generator)?

We also have a ton of ready to use widgets - https://github.com/artflutter/reactive_forms_widgets