CloudGalleryLocalizations class abstract
Translatable strings used by the cloud_storage_gallery widgets.
Add the delegate to your app's MaterialApp.localizationsDelegates.
The widgets will pick the appropriate translation based on the app's
current Locale:
MaterialApp(
localizationsDelegates: const [
CloudGalleryLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: CloudGalleryLocalizations.supportedLocales,
locale: const Locale('ar'),
home: CloudFolderScreen(storage: myStorage),
);
To add a locale, subclass CloudGalleryLocalizations and register your own delegate.
- Implementers
Constructors
- CloudGalleryLocalizations()
-
const
Properties
- addLinkTooltip → String
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
- createFolderTooltip → String
-
no setter
- deleteFileBody → String
-
no setter
- deleteFolderBody → String
-
no setter
- deletingTitle → String
-
AppBar / dialog title for bulk delete progress.
no setter
- emptyFolder → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- infoLabelCreated → String
-
no setter
- infoLabelMime → String
-
no setter
- infoLabelName → String
-
no setter
- infoLabelPath → String
-
no setter
- infoLabelSize → String
-
no setter
- infoLabelType → String
-
no setter
- infoLabelUpdated → String
-
no setter
- infoLabelUrl → String
-
Info-dialog row label for a link's URL.
no setter
- infoTypeFile → String
-
no setter
- infoTypeFolder → String
-
no setter
- linkNameLabel → String
-
no setter
- linkUrlLabel → String
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
- moveToTitle → String
-
no setter
- movingTitle → String
-
AppBar / dialog title for bulk move progress.
no setter
- newFolderTitle → String
-
no setter
- newLinkTitle → String
-
no setter
- openingTitle → String
-
Dialog title while a file is being downloaded before being handed off
to the OS default handler.
no setter
- preparingUploadsTitle → String
-
Dialog title shown BEFORE uploads start, while the gallery is
generating thumbnails and preparing each file. On large batches
this phase can take a few seconds per file — without a dialog the
user would see nothing after picking files.
no setter
- renameTitle → String
-
no setter
- rootLabel → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortByHeader → String
-
Header row shown at the top of the sort popup menu.
no setter
- sortDirectionAscending → String
-
Menu row that flips direction. Shown with an arrow icon.
no setter
- sortDirectionDescending → String
-
no setter
- sortFieldDateCreated → String
-
no setter
- sortFieldDateModified → String
-
no setter
- sortFieldName → String
-
no setter
- sortFieldSize → String
-
no setter
- sortFieldType → String
-
no setter
- sortFoldersFirst → String
-
Toggle row for the folders-first option.
no setter
- sortTooltip → String
-
Tooltip on the sort icon button.
no setter
- unitBytes → String
-
no setter
- unitGigabytes → String
-
no setter
- unitKilobytes → String
-
no setter
- unitMegabytes → String
-
no setter
- uploadFileTooltip → String
-
no setter
- uploadingTitle → String
-
no setter
- uploadSourceFiles → String
-
Row label + subtitle for the "files" upload source (generic
document picker; any file type).
no setter
- uploadSourceFilesSubtitle → String
-
no setter
- uploadSourcePhotos → String
-
Row label + subtitle for the "photos & videos" upload source
(system photo picker; images + videos from the camera roll).
no setter
- uploadSourcePhotosSubtitle → String
-
no setter
- uploadSourceSheetTitle → String
-
Title of the bottom sheet that appears when the user taps the
Upload FAB and has to choose between the photo picker and the
generic file picker.
no setter
Methods
-
bulkProgressLabel(
int completed, int total) → String - Generic aggregate-progress label, e.g. "3 of 10 complete". Reused across upload / delete / move batch dialogs.
-
deleteConfirmTitle(
String name) → String - Title of the delete confirmation dialog, e.g. "Delete report.pdf?".
-
deleteMultipleTitle(
int count) → String - Confirmation-dialog title for bulk delete, e.g. "Delete 3 items?".
-
downloadFailedSnack(
Object error) → String -
downloadingSnack(
String name) → String -
gridErrorLabel(
Object error) → String -
linkOpenFailedSnack(
String url) → String - Snackbar shown when the OS can't launch the tapped URL.
-
moveHereEmptyHint(
String moveHereLabel) → String - Empty-state hint in the folder picker, formatted with the "Move here" button label so the translation can reference it inline.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectionCountLabel(
int count) → String - AppBar title in selection mode, e.g. "3 selected".
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → CloudGalleryLocalizations - Returns the localizations for the current BuildContext.
Constants
-
delegate
→ const LocalizationsDelegate<
CloudGalleryLocalizations> -
Delegate to add to
MaterialApp.localizationsDelegates. -
supportedLocales
→ const List<
Locale> - Registered languages built into the package.