Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge locker_ui branch after resolving conflicts

ashilkn1f6339d6dddb
diff --cc mobile/apps/locker/lib/ui/pages/trash_page.dart
index c869c3e7d0,dbde2412d0..4cae28c230
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@@ -281,13 -257,31 +257,38 @@@ class _TrashPageState extends State<Tra
],
),
const SizedBox(height: 24),
+ Expanded(
+ child: ItemListView(
+ files: _sortedTrashFiles.cast<EnteFile>(),
+ fileOverflowActions: _getFileOverflowActions(),
+ physics: const BouncingScrollPhysics(),
+ ),
+ ),
+ _sortedTrashFiles.isEmpty
+ ? const EmptyStateWidget(
+ assetPath: 'assets/empty_state.png',
+ title: "Nothing to see here",
+ showBorder: false,
+ )
+ : Expanded(
+ child: LayoutBuilder(
+ builder: (context, constraints) {
+ return SingleChildScrollView(
+ physics: const BouncingScrollPhysics(),
+ padding: EdgeInsets.zero,
+ child: ConstrainedBox(
+ constraints: BoxConstraints(
+ minHeight: constraints.maxHeight,
+ ),
+ child: ItemListView(
+ files: _sortedTrashFiles.cast<EnteFile>(),
+ fileOverflowActions: _getFileOverflowActions(),
+ ),
+ ),
+ );
+ },
+ ),
+ ),
],
),
);