Build APK / build (push) Successful in 5m27s
- Offline tab is now FilesView(offline: true) over a FolderBrowser interface (FilesController / OfflineController) sharing controls, tiles, thumbnails - Synced files follow the Files Cache rule (default: refresh every 15 min): per-account WorkManager jobs, in-app timer, resume and pull triggers; root-etag shortcut skips full walks when nothing changed - Single sync at a time (shared lock); logging out stops that account's sync - Sync safety: PROPFIND failures skip the path instead of deleting local files - Mirror empty folders and remove deleted ones; drop synced paths deleted on the server; missing local files are re-downloaded - Notifications: silent per-account sync notifications, "Background sync notifications" setting, audible upload/download completion - Files refresh in place (no spinner flash); retry after network returns - Fix sync badges not updating (shared native status stream), "Sync off" on launch (eager providers), Files Cache section moved under Device Sync Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
65 lines
1.6 KiB
Dart
65 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:material_symbols_icons/symbols.dart';
|
|
|
|
/// Every destination the bottom nav bar can show. Order here is only the
|
|
/// fallback default — actual order/visibility/default-tab are user
|
|
/// configurable and persisted in `SettingsController`.
|
|
enum AppTab {
|
|
files,
|
|
photos,
|
|
favorites,
|
|
activity,
|
|
trash,
|
|
shares,
|
|
recent,
|
|
offline,
|
|
}
|
|
|
|
/// At most this many tabs may be visible in the bottom nav bar at once —
|
|
/// the rest are reachable through the "more" dropdown instead.
|
|
const int maxVisibleTabs = 5;
|
|
|
|
extension AppTabInfo on AppTab {
|
|
String get label {
|
|
switch (this) {
|
|
case AppTab.files:
|
|
return 'Files';
|
|
case AppTab.photos:
|
|
return 'Photos';
|
|
case AppTab.favorites:
|
|
return 'Favorites';
|
|
case AppTab.activity:
|
|
return 'Activity';
|
|
case AppTab.trash:
|
|
return 'Trash';
|
|
case AppTab.shares:
|
|
return 'Shares';
|
|
case AppTab.recent:
|
|
return 'Recent';
|
|
case AppTab.offline:
|
|
return 'Offline';
|
|
}
|
|
}
|
|
|
|
IconData get icon {
|
|
switch (this) {
|
|
case AppTab.files:
|
|
return Icons.folder_rounded;
|
|
case AppTab.photos:
|
|
return Icons.photo_library_rounded;
|
|
case AppTab.favorites:
|
|
return Icons.favorite_rounded;
|
|
case AppTab.activity:
|
|
return Icons.electric_bolt_rounded;
|
|
case AppTab.trash:
|
|
return Icons.delete_outline_rounded;
|
|
case AppTab.shares:
|
|
return Icons.groups_rounded;
|
|
case AppTab.recent:
|
|
return Symbols.search_activity_rounded;
|
|
case AppTab.offline:
|
|
return Icons.offline_pin_rounded;
|
|
}
|
|
}
|
|
}
|