aboutsummaryrefslogtreecommitdiff
path: root/lib/view/src/source/album.dart
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /lib/view/src/source/album.dart
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'lib/view/src/source/album.dart')
-rw-r--r--lib/view/src/source/album.dart17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/view/src/source/album.dart b/lib/view/src/source/album.dart
new file mode 100644
index 0000000..2ac7946
--- /dev/null
+++ b/lib/view/src/source/album.dart
@@ -0,0 +1,17 @@
+import 'package:aves/widgets/common/extensions/build_context.dart';
+import 'package:aves_model/aves_model.dart';
+import 'package:flutter/widgets.dart';
+
+extension ExtraAlbumTypeView on AlbumType {
+ String? getName(BuildContext context) {
+ final l10n = context.l10n;
+ return switch (this) {
+ AlbumType.camera => l10n.albumCamera,
+ AlbumType.download => l10n.albumDownload,
+ AlbumType.screenshots => l10n.albumScreenshots,
+ AlbumType.screenRecordings => l10n.albumScreenRecordings,
+ AlbumType.videoCaptures => l10n.albumVideoCaptures,
+ AlbumType.regular || AlbumType.vault || AlbumType.app => null,
+ };
+ }
+}