0 purchases
slang flutter
slang_flutter #
This is a support package for slang.
Import this package if you develop flutter apps.
dependencies:
slang: <version>
slang_flutter: <version>
copied to clipboard
RichText #
This package enables RichText support.
BuildContext translations #
This package adds BuildContext integration to rebuild all widgets on locale change.
// get translation instance and mark this widget for rebuild on locale change
final t = Translations.of(context);
String a = t.myTranslation;
String b = context.t.myTranslation; // build-in extensions for BuildContext
copied to clipboard
Additional API #
Some useful methods provided by this package.
// use current device locale, and listen to it when the user changes it in device settings
LocaleSettings.useDeviceLocale();
// get current device locale
AppLocale locale = AppLocaleUtils.findDeviceLocale();
// get supported locales (handy for MaterialApp)
List<Locale> locales = AppLocaleUtils.supportedLocales;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.