FluoLocalizations class abstract

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

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

import 'l10n/fluo_localizations.dart';

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

Implementers

Constructors

FluoLocalizations(String locale)

Properties

acceptTerms String
No description provided for @acceptTerms.
no setter
enterCode String
No description provided for @enterCode.
no setter
enterEmail String
No description provided for @enterEmail.
no setter
enterEmailPlaceholder String
No description provided for @enterEmailPlaceholder.
no setter
enterFirstName String
No description provided for @enterFirstName.
no setter
enterFirstNamePlaceholder String
No description provided for @enterFirstNamePlaceholder.
no setter
enterLastName String
No description provided for @enterLastName.
no setter
enterLastNamePlaceholder String
No description provided for @enterLastNamePlaceholder.
no setter
errorCodeExpired String
No description provided for @errorCodeExpired.
no setter
errorCodeInvalid String
No description provided for @errorCodeInvalid.
no setter
errorInternal String
No description provided for @errorInternal.
no setter
errorNotFound String
No description provided for @errorNotFound.
no setter
errorParameterInvalid String
No description provided for @errorParameterInvalid.
no setter
errorParameterMissing String
No description provided for @errorParameterMissing.
no setter
errorSessionRevoked String
No description provided for @errorSessionRevoked.
no setter
errorUnauthorized String
No description provided for @errorUnauthorized.
no setter
errorUnknown String
No description provided for @errorUnknown.
no setter
hashCode int
The hash code for this object.
no setterinherited
localeName String
final
next String
No description provided for @next.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enterCodeHelper(String email) String
No description provided for @enterCodeHelper.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) FluoLocalizations?

Constants

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