SNovu class abstract

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

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

import 'generated/app_localizations.dart';

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

Implementers

Constructors

SNovu.new(String locale)

Properties

archive String
No description provided for @archive.
no setter
archiveAll String
No description provided for @archiveAll.
no setter
archived String
No description provided for @archived.
no setter
archiveRead String
No description provided for @archiveRead.
no setter
globalPreferences String
No description provided for @globalPreferences.
no setter
hashCode int
The hash code for this object.
no setterinherited
inbox String
No description provided for @inbox.
no setter
justNow String
No description provided for @justNow.
no setter
localeName String
final
markAllAsRead String
No description provided for @markAllAsRead.
no setter
markAsRead String
No description provided for @markAsRead.
no setter
noArchivedNotifications String
No description provided for @noArchivedNotifications.
no setter
noNotifications String
No description provided for @noNotifications.
no setter
noNotificationSettings String
No description provided for @noNotificationSettings.
no setter
noNotificationSettingsMessage String
No description provided for @noNotificationSettingsMessage.
no setter
notifications String
No description provided for @notifications.
no setter
notificationsMessage String
No description provided for @notificationsMessage.
no setter
notificationsPreferences String
No description provided for @notificationsPreferences.
no setter
noUnreadNotifications String
No description provided for @noUnreadNotifications.
no setter
refresh String
No description provided for @refresh.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unarchive String
No description provided for @unarchive.
no setter
unreadAndRead String
No description provided for @unreadAndRead.
no setter
unreadOnly String
No description provided for @unreadOnly.
no setter

Methods

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

Operators

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

Static Methods

of(BuildContext context) SNovu?

Constants

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