units_localizations

Creator: coderz1093

Last updated:

0 purchases

units_localizations Image
units_localizations Images
Add to Cart

Description:

units localizations

Units Localizations delivers a prepeard localizations labels for most used units.
Getting Started #

Add to your dependencies:

dependencies:
units_localization: ^1.0.0
copied to clipboard

Add delegates in your MaterialApp widget:

MaterialApp(
// ...
localizationsDelegates: [
UnitsLocalizations.delegate,
],
supportedLocales: [
const Locale('en'),
const Locale('ar'),
/// add other locales for now (en, ar)
],
// ...
)
copied to clipboard

Use it:

/// ...

TextFormField(
decoration: InputDecoration(
labelText: UnitsLocalizations.of(context).miles(0),
// figer out more, UnitsLocalizations.of(context).inches(100), etc..
),
)

/// ..
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.