Add action bar preview and all swipe actions; rename App lock
Check PR / check (pull_request) Successful in 56s

This commit is contained in:
Ayushya Amitabh
2026-10-07 23:14:21 -04:00
parent 91ab8b4a07
commit 2d244ce335
10 changed files with 277 additions and 82 deletions
+18 -1
View File
@@ -7,7 +7,24 @@ import '../widgets/noo/nav/noo_nav_style.dart';
/// What swiping a Files list-view item left/right does, user-configurable
/// in Settings.
enum SwipeAction { none, favorite, delete, share }
enum SwipeAction {
none(null),
favorite(SelectionActionKind.favorite),
delete(SelectionActionKind.delete),
share(SelectionActionKind.share),
download(SelectionActionKind.download),
copy(SelectionActionKind.copy),
move(SelectionActionKind.move),
rename(SelectionActionKind.rename),
sync(SelectionActionKind.sync),
details(SelectionActionKind.details);
const SwipeAction(this.selectionKind);
final SelectionActionKind? selectionKind;
String get label => selectionKind?.label ?? 'None';
}
/// How the mobile Upload button is sized: [auto] expands on Files/Photos and
/// shrinks to an icon elsewhere, [mini] is always icon-only, [expanded]