fix(mobile): use storageIndicator setting for beta timeline (#20639)

* fix: use storageIndicator setting for beta timeline

* fix: reactively update the storage indicator icons when setting is changed

* Update drift_trash.page.dart

* override to bool for storageIndicator
This commit is contained in:
Brandon Wees 2025-08-04 17:25:58 -05:00 committed by GitHub
parent 990d9ba9a8
commit 750d21aeba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 14 deletions

View file

@ -16,17 +16,16 @@ class MainTimelinePage extends ConsumerWidget {
return memoryLaneProvider.maybeWhen(
data: (memories) {
return memories.isEmpty
? const Timeline(showStorageIndicator: true)
? const Timeline()
: Timeline(
topSliverWidget: SliverToBoxAdapter(
key: Key('memory-lane-${memories.first.assets.first.id}'),
child: DriftMemoryLane(memories: memories),
),
topSliverWidgetHeight: 200,
showStorageIndicator: true,
);
},
orElse: () => const Timeline(showStorageIndicator: true),
orElse: () => const Timeline(),
);
}
}