SuperNavigationLocalization class abstract

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

Applications need to include SuperNavigationLocalization.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: SuperNavigationLocalization.localizationsDelegates,
  supportedLocales: SuperNavigationLocalization.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 SuperNavigationLocalization.supportedLocales property.

Implementers

Constructors

SuperNavigationLocalization(String locale)

Properties

addToQuickAccess → String
Tooltip on the star icon when the node is not yet a favorite.
no setter
drawerCloseLabel → String
Accessible tooltip and semantic label for the drawer close icon button.
no setter
drawerTitle → String
Eyebrow label above the close button in the navigation drawer.
no setter
hashCode → int
The hash code for this object.
no setterinherited
localeName → String
final
lockedDefault → String
Fallback tooltip when a navigation node is locked and has no explicit lock message.
no setter
quickAccessTitle → String
Section eyebrow above the synthesized Quick Access favorites band.
no setter
recentsTitle → String
Header of the recent-destinations band in the command palette.
no setter
removeFromQuickAccess → String
Tooltip on the star icon when the node is already a favorite.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchHint → String
Placeholder shown inside the navigation search field when empty.
no setter
semanticCollapsed → String
Appended to a branch node semantic label when it is collapsed.
no setter
semanticDisabled → String
Appended to a node semantic label when it is disabled.
no setter
semanticExpanded → String
Appended to a branch node semantic label when it is expanded.
no setter
semanticLocked → String
Appended to a node semantic label when it is locked.
no setter
semanticOpenDrawer → String
Semantic label for the hamburger or open-drawer button in drawer mode.
no setter
semanticToggleSidebar → String
Semantic label for the rail collapse and expand toggle button.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchEmpty(String query) → String
Message shown when a search query returns no hits.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) → SuperNavigationLocalization

Constants

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