FlutterEssentialsKitLocalizations class abstract

Callers can lookup localized strings with an instance of FlutterEssentialsKitLocalizations returned by FlutterEssentialsKitLocalizations.of(context).

Applications need to include FlutterEssentialsKitLocalizations.delegate() in their app's localizationDelegates list, and the locales they support in the app's supportedLocales list. For example:

import 'gen_l10n/flutter_essentials_kit_localizations.dart';

return MaterialApp(
  localizationsDelegates: FlutterEssentialsKitLocalizations.localizationsDelegates,
  supportedLocales: FlutterEssentialsKitLocalizations.supportedLocales,
  home: MyApplicationHome(),
);

Update pubspec.yaml

Please make sure to update your pubspec.yaml to include the following packages:

dependencies:
  # Internationalization support.
  flutter_localizations:
    sdk: flutter
  intl: any # Use the pinned version from flutter_localizations

  # Rest of dependencies

iOS Applications

iOS applications define key application metadata, including supported locales, in an Info.plist file that is built into the application bundle. To configure the locales supported by your app, you’ll need to edit this file.

First, open your project’s ios/Runner.xcworkspace Xcode workspace file. Then, in the Project Navigator, open the Info.plist file under the Runner project’s Runner folder.

Next, select the Information Property List item, select Add Item from the Editor menu, then select Localizations from the pop-up menu.

Select and expand the newly-created Localizations item then, for each locale your application supports, add a new item and select the locale you wish to add from the pop-up menu in the Value field. This list should be consistent with the languages listed in the FlutterEssentialsKitLocalizations.supportedLocales property.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
localeName String
final
ruleConfirmed String
The rule confirmed error message
no setter
ruleEmail String
The rule email error message
no setter
ruleRegex String
The rule regex error message
no setter
ruleRequired String
The rule required error message
no setter
ruleSame String
The rule same error message
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ruleMaxListLength(num max) String
The rule max list length error message
ruleMaxNumber(num max) String
The rule max number error message
ruleMaxStringLength(num max) String
The rule max string error message
ruleMinListLength(num min) String
The rule min list length error message
ruleMinNumber(num min) String
The rule min number error message
ruleMinStringLength(num min) String
The rule min string error message
ruleSizeListLength(num size) String
The rule size list length error message
ruleSizeNumber(num size) String
The rule size number error message
ruleSizeStringLength(num size) String
The rule size string length error message
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) FlutterEssentialsKitLocalizations

Constants

delegate → const LocalizationsDelegate<FlutterEssentialsKitLocalizations>
localizationsDelegates → const List<LocalizationsDelegate>
A list of this localizations delegate along with the default localizations delegates.
supportedLocales → const List<Locale>
A list of this localizations delegate's supported locales.