localized_text_widget 0.5.0 copy "localized_text_widget: ^0.5.0" to clipboard
localized_text_widget: ^0.5.0 copied to clipboard

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)
0
likes
160
points
158
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl

More

Packages that depend on localized_text_widget