Last updated:
0 purchases
attribute localizations
Attribute Localizations delivers a prepeard localizations labels for most used attributes.
Getting Started #
Add to your dependencies:
dependencies:
attribute_localization: ^1.0.0
copied to clipboard
Add delegates in your MaterialApp widget:
MaterialApp(
// ...
localizationsDelegates: [
AttributeLocalizations.delegate,
],
supportedLocales: [
const Locale('en'),
const Locale('ar'),
/// add other locales for now (en, ar)
],
// ...
)
copied to clipboard
Use it:
/// ...
TextFormField(
decoration: InputDecoration(
labelText: AttributeLocalizations.of(context).name,
// figer out more, AttributeLocalizations.of(context).email, etc..
),
)
/// ..
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.