localized_text_widget 0.4.0

SDKflutter
Platformandroidioswindowslinuxmacosweb

Use with the `localized_text_key_generator` package to simplify text widgets with localized text

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)