Skip to content

armgit / ente

Public Imported from GitHub
0

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

Always show changelog and tune sheet spacing

ashilkn6183092b4caa
diff --git a/mobile/apps/photos/lib/services/update_service.dart b/mobile/apps/photos/lib/services/update_service.dart
index c1991d519b..81ba4da9a0 100644
--- a/mobile/apps/photos/lib/services/update_service.dart
+++ b/mobile/apps/photos/lib/services/update_service.dart
@@ -28,9 +28,8 @@ class UpdateService {
}
Future<bool> showChangeLog() async {
- // fetch the change log version which was last shown to user.
- final lastShownAtVersion = _prefs.getInt(changeLogVersionKey) ?? 0;
- return lastShownAtVersion < currentChangeLogVersion;
+ // Temporary override to keep the changelog visible on every launch.
+ return true;
}
Future<bool> hideChangeLog() async {
diff --git a/mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart b/mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart
index 3e5a9d4829..003b6d086e 100644
--- a/mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart
+++ b/mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart
@@ -30,6 +30,7 @@ class ChangeLogEntryWidget extends StatelessWidget {
final hasDescription =
entry.description != null && entry.description!.isNotEmpty;
final hasItems = entry.items.isNotEmpty;
+ final hasBody = hasDescription || hasItems;
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -43,9 +44,7 @@ class ChangeLogEntryWidget extends StatelessWidget {
: colorScheme.textMuted,
),
),
- const SizedBox(
- height: 18,
- ),
+ if (hasBody) const SizedBox(height: 10),
if (hasDescription)
Padding(
padding: EdgeInsets.only(bottom: hasItems ? 12 : 0),
@@ -82,9 +81,6 @@ class ChangeLogEntryWidget extends StatelessWidget {
),
),
),
- const SizedBox(
- height: 10,
- ),
],
);
}
diff --git a/mobile/apps/photos/lib/ui/notification/update/change_log_page.dart b/mobile/apps/photos/lib/ui/notification/update/change_log_page.dart
index f6eb01650b..c92151500d 100644
--- a/mobile/apps/photos/lib/ui/notification/update/change_log_page.dart
+++ b/mobile/apps/photos/lib/ui/notification/update/change_log_page.dart
@@ -133,7 +133,7 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
controller: _scrollController,
thumbVisibility: true,
thickness: 2.0,
- child: ListView.builder(
+ child: ListView.separated(
controller: _scrollController,
shrinkWrap: true,
physics: const BouncingScrollPhysics(),
@@ -143,6 +143,7 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
child: ChangeLogEntryWidget(entry: items[index]),
);
},
+ separatorBuilder: (_, __) => const SizedBox(height: 16),
itemCount: items.length,
),
),