0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.