π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Simplify changelog scrolling
Prateek Sunal397b5d85924a
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.dartindex 04b20cfa90..f9acc1eae7 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@@ -95,7 +95,6 @@ class _ChangeLogPageState extends State<ChangeLogPage> {}Widget _getChangeLog(BuildContext ctx) {- final scrollController = ScrollController();final List<ChangeLogEntry> items = [ChangeLogEntry(context.l10n.cLTitle1,@@ -109,14 +108,12 @@ class _ChangeLogPageState extends State<ChangeLogPage> {),];final double maxListHeight = MediaQuery.of(ctx).size.height * 0.5;- final bool shouldScroll = items.length > 3;+ final scrollController = ScrollController();final listView = ListView.builder(controller: scrollController,shrinkWrap: true,padding: const EdgeInsets.only(right: 16),- physics: shouldScroll- ? const BouncingScrollPhysics()- : const NeverScrollableScrollPhysics(),+ physics: const BouncingScrollPhysics(),itemBuilder: (context, index) {return ChangeLogEntryWidget(entry: items[index]);},@@ -128,7 +125,6 @@ class _ChangeLogPageState extends State<ChangeLogPage> {),child: Scrollbar(controller: scrollController,- thumbVisibility: shouldScroll,thickness: 2.0,child: listView,),