SuperTreeLocalization class abstract

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

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

import 'generated/l10n.dart';

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

Implementers

Constructors

SuperTreeLocalization(String locale)

Properties

add → String
No description provided for @add.
no setter
addChild → String
No description provided for @addChild.
no setter
addNode → String
No description provided for @addNode.
no setter
addSiblingAbove → String
No description provided for @addSiblingAbove.
no setter
addSiblingBelow → String
No description provided for @addSiblingBelow.
no setter
clear → String
No description provided for @clear.
no setter
close → String
No description provided for @close.
no setter
collapse → String
No description provided for @collapse.
no setter
delete → String
No description provided for @delete.
no setter
dismissMenu → String
No description provided for @dismissMenu.
no setter
editMode → String
No description provided for @editMode.
no setter
expand → String
No description provided for @expand.
no setter
expandAll → String
No description provided for @expandAll.
no setter
expandSubtree → String
No description provided for @expandSubtree.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hierarchy → String
No description provided for @hierarchy.
no setter
items → String
No description provided for @items.
no setter
keyboardShortcuts → String
No description provided for @keyboardShortcuts.
no setter
keyboardShortcutsTooltip → String
No description provided for @keyboardShortcutsTooltip.
no setter
localeName → String
final
name → String
No description provided for @name.
no setter
newNode → String
No description provided for @newNode.
no setter
open → String
No description provided for @open.
no setter
readMode → String
No description provided for @readMode.
no setter
rename → String
No description provided for @rename.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchHint → String
No description provided for @searchHint.
no setter
selected → String
No description provided for @selected.
no setter
shortcutCheatsheet → String
No description provided for @shortcutCheatsheet.
no setter
shortcutClearSearch → String
No description provided for @shortcutClearSearch.
no setter
shortcutCollapseExpand → String
No description provided for @shortcutCollapseExpand.
no setter
shortcutExpandCollapseAll → String
No description provided for @shortcutExpandCollapseAll.
no setter
shortcutFocusSearch → String
No description provided for @shortcutFocusSearch.
no setter
shortcutJumpFirstLast → String
No description provided for @shortcutJumpFirstLast.
no setter
shortcutMoveBetweenRows → String
No description provided for @shortcutMoveBetweenRows.
no setter
shortcutOpenNodeMenu → String
No description provided for @shortcutOpenNodeMenu.
no setter
shortcutOpenToggle → String
No description provided for @shortcutOpenToggle.
no setter
shortcutRightClickKey → String
No description provided for @shortcutRightClickKey.
no setter
shortcutToggleCheckbox → String
No description provided for @shortcutToggleCheckbox.
no setter
treeEmpty → String
No description provided for @treeEmpty.
no setter
tryDifferentCodeOrName → String
No description provided for @tryDifferentCodeOrName.
no setter

Methods

itemsSelected(int count) → String
No description provided for @itemsSelected.
noMatchesFor(String query) → String
No description provided for @noMatchesFor.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectedCount(int count) → String
No description provided for @selectedCount.
toString() → String
A string representation of this object.
inherited
visibleOfTotal(int visible, int total) → String
No description provided for @visibleOfTotal.

Operators

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

Static Methods

of(BuildContext context) → SuperTreeLocalization

Constants

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