localized_text_widget Pub Package

Use with the localized_text_key_generator package to simplify text widgets with localized text using .arb files

Example

This can be used to simplify

return Builder(
  builder: (context) {
    return Text(AppLocalizations.of(context)!.text);
  },
)

to

return Localized(text: LocalizationMessage<AppLocalizations>.getter((l) => l.text))

or when using the code generator

return const Localized(text: AppLocalizationsKey.text)