FormBuilderLocalizationsImpl class abstract

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

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

import 'intl/messages.dart';

return MaterialApp(
  localizationsDelegates: FormBuilderLocalizationsImpl.localizationsDelegates,
  supportedLocales: FormBuilderLocalizationsImpl.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 FormBuilderLocalizationsImpl.supportedLocales property.

Implementers

Constructors

FormBuilderLocalizationsImpl(String locale)

Properties

creditCardErrorText String
No description provided for @creditCardErrorText.
no setter
dateStringErrorText String
No description provided for @dateStringErrorText.
no setter
emailErrorText String
No description provided for @emailErrorText.
no setter
hashCode int
The hash code for this object.
no setterinherited
integerErrorText String
No description provided for @integerErrorText.
no setter
ipErrorText String
No description provided for @ipErrorText.
no setter
localeName String
final
matchErrorText String
No description provided for @matchErrorText.
no setter
numericErrorText String
No description provided for @numericErrorText.
no setter
requiredErrorText String
No description provided for @requiredErrorText.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urlErrorText String
No description provided for @urlErrorText.
no setter

Methods

equalErrorText(Object value) String
No description provided for @equalErrorText.
equalLengthErrorText(Object length) String
No description provided for @equalLengthErrorText.
maxErrorText(Object max) String
No description provided for @maxErrorText.
maxLengthErrorText(Object maxLength) String
No description provided for @maxLengthErrorText.
maxWordsCountErrorText(Object maxWordsCount) String
No description provided for @maxWordsCountErrorText.
minErrorText(Object min) String
No description provided for @minErrorText.
minLengthErrorText(Object minLength) String
No description provided for @minLengthErrorText.
minWordsCountErrorText(Object minWordsCount) String
No description provided for @minWordsCountErrorText.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEqualErrorText(Object value) String
No description provided for @notEqualErrorText.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) FormBuilderLocalizationsImpl?

Constants

delegate → const LocalizationsDelegate<FormBuilderLocalizationsImpl>
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.