Waterfall layout in files (w.i.p)

This commit is contained in:
2025-11-15 15:42:09 +08:00
parent 4a5dac248e
commit 07f191171c
5 changed files with 361 additions and 120 deletions

View File

@@ -26,6 +26,8 @@ class FileListScreen extends HookConsumerWidget {
final usageAsync = ref.watch(billingUsageProvider);
final quotaAsync = ref.watch(billingQuotaProvider);
final viewMode = useState(FileListViewMode.list);
return AppScaffold(
isNoBackground: false,
appBar: AppBar(
@@ -56,6 +58,7 @@ class FileListScreen extends HookConsumerWidget {
() => _pickAndUploadFile(ref, currentPath.value),
onShowCreateDirectory: _showCreateDirectoryDialog,
mode: mode,
viewMode: viewMode,
),
loading: () => const Center(child: CircularProgressIndicator()),
error: (e, _) => Center(child: Text('Error loading quota')),