smartnsoft / FlappyTranslator

A tool which automatically generates Flutter localization resources from CSV and Excel files.
MIT License
58 stars 19 forks source link

Generation error in the version ^2.0.0-nullsafety.1 #48

Closed dan-gandolfo closed 3 years ago

dan-gandolfo commented 3 years ago

Hi,

Thanks for this tools. It's just perfect but in the last version I get some error in the generated code when I add a variable in the string.

For example: If I put this entry in my CSV file: "ble_device_incompatible","Your device is not compatible with your mask %1$s.","Votre appareil n'est pas compatible avec votre masque %1$s."

The result is:

static String ble_device_incompatible({
    required String var1,
  }) =>
      _getText("ble_device_incompatible").replaceAll("%1\$s", var1);

The @ before "required" word is missing.

Do you need more information about my configuration?

Regards, Daniel

dan-gandolfo commented 3 years ago

Ok It's a mistake in my side. I have not enabled the non-nullable feature