From 566506616c6352da90316d54dceaed8b97f81d07 Mon Sep 17 00:00:00 2001 From: Matthias Nehlsen Date: Sun, 25 Feb 2024 01:13:14 +0100 Subject: [PATCH] feat: tweak scroll to ensure visible --- lib/pages/journal/entry_details_page.dart | 4 ++-- lib/widgets/journal/editor/editor_widget.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/journal/entry_details_page.dart b/lib/pages/journal/entry_details_page.dart index e7bb6fca4..cedb81b99 100644 --- a/lib/pages/journal/entry_details_page.dart +++ b/lib/pages/journal/entry_details_page.dart @@ -47,11 +47,11 @@ class EntryDetailPage extends StatelessWidget { isMacOS: Platform.isMacOS, isIOS: Platform.isIOS, isAndroid: Platform.isAndroid, - ).animate().fadeIn(duration: const Duration(milliseconds: 1000)), + ).animate().fadeIn(duration: const Duration(milliseconds: 500)), body: SingleChildScrollView( padding: const EdgeInsets.only( top: 8, - bottom: 96, + bottom: 200, left: 5, right: 5, ), diff --git a/lib/widgets/journal/editor/editor_widget.dart b/lib/widgets/journal/editor/editor_widget.dart index 08bc8bb22..64ef2353d 100644 --- a/lib/widgets/journal/editor/editor_widget.dart +++ b/lib/widgets/journal/editor/editor_widget.dart @@ -79,7 +79,7 @@ class EditorWidget extends StatelessWidget { } if (snapshot.isFocused && isMobile) { - Timer(const Duration(milliseconds: 100), () { + Timer(const Duration(milliseconds: 300), () { Scrollable.ensureVisible( context, duration: const Duration(milliseconds: 300), diff --git a/pubspec.yaml b/pubspec.yaml index d023e891c..ca85b3b51 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: lotti description: Achieve your goals and keep your data private with Lotti. publish_to: 'none' -version: 0.9.431+2388 +version: 0.9.431+2389 msix_config: display_name: LottiApp