vscode-flutter-i18n-json icon indicating copy to clipboard operation
vscode-flutter-i18n-json copied to clipboard

Null Safe generated code

Open EducatedDeer opened this issue 4 years ago • 3 comments

I was trying to migrate to null-safety but I got the errors all over from generated i18n file

can you please make another command for null safe code generation so ppl still not migrate to it can have time too

EducatedDeer avatar Apr 05 '21 19:04 EducatedDeer

Note to self: always check the last commit date before deciding to use anything in your project

EducatedDeer avatar Apr 24 '21 13:04 EducatedDeer

I made my own code generator that should be used in conjunction with this plugin. It does support Null Safety! and it auto detects Null safety by parsing the pubspec.yaml ... check it https://github.com/gnudles/dart_i18n_generator

gnudles avatar Jun 28 '21 20:06 gnudles

I've submitted a pull-request that adds null-safety support. I don't know if this project is still maintained, but if it isn't you can package it easily with vsce ( https://code.visualstudio.com/api/working-with-extensions/publishing-extension#packaging-extensions ) into a .vsix file that you can use to install the updated extension.

apripy avatar Jan 13 '22 15:01 apripy