Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix issue on trash screen

ashilkne77c75793be0
diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dart
index 4cae28c230..03b348f598 100644
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@ -257,13 +257,6 @@ class _TrashPageState extends State<TrashPage> {
],
),
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',
@@ -271,22 +264,10 @@ class _TrashPageState extends State<TrashPage> {
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(),
- ),
- ),
- );
- },
+ child: ItemListView(
+ files: _sortedTrashFiles.cast<EnteFile>(),
+ fileOverflowActions: _getFileOverflowActions(),
+ physics: const BouncingScrollPhysics(),
),
),
],