KingWu / gen_lang

gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
BSD 2-Clause "Simplified" License
100 stars 23 forks source link

Remove warning interpolation braces not needed #13

Closed areille closed 4 years ago

areille commented 4 years ago

This workaround fixes this issue.

Basically, it adds an exception for Dart linter so that there is no warnings.

This trick is heavily used in build_value_generator.

KingWu commented 4 years ago

Sorry. Had a long trip before.

dariof28 commented 4 years ago

Hi, when do you plan to release this fix? Right now the latest available version in pub.dev is the 0.1.2 that do not includes this fix. Thanks

areille commented 4 years ago

Hi, when do you plan to release this fix? Right now the latest available version in pub.dev is the 0.1.2 that do not includes this fix. Thanks

@dariof28 as a workaround you can use the following in your pubspec.yaml :

gen_lang:
    git:
      url: git://github.com/KingWu/gen_lang.git

However I agree with you, this fix should be released on pub.dev.

dariof28 commented 4 years ago

Hi, when do you plan to release this fix? Right now the latest available version in pub.dev is the 0.1.2 that do not includes this fix. Thanks

@dariof28 as a workaround you can use the following in your pubspec.yaml :

gen_lang:
    git:
      url: git://github.com/KingWu/gen_lang.git

However I agree with you, this fix should be released on pub.dev.

Thanks mate, I needed to change url of package for another package too and I was planning to search how to do it, 2 pigeons with one stone :grin: However since this is not blocking but is just annoying to see those notices, I prefer to wait the release in this case. Thanks again for the tip

KingWu commented 4 years ago

Sorry guys to release late. Just publish to pub.dev for v0.1.3