From ef8d1f618c594b83dc6edd2ca6786527f381a8ab Mon Sep 17 00:00:00 2001 From: Moseco Date: Sat, 5 Jul 2025 22:32:18 +0900 Subject: [PATCH 1/3] build: update disk space package --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 31d398f..18821eb 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -282,10 +282,10 @@ packages: dependency: "direct main" description: name: disk_space_plus - sha256: eefdc9ffe232f03ae50e58b2fef574d2e12c805dc1d22cc5cc7cf7a4a78fdd94 + sha256: "1e454599a7dcec0c0bc1ad0b7f9f563b3fffbc988175bd452c4d3c7503ed3423" url: "https://pub.dev" source: hosted - version: "0.2.5" + version: "0.2.6" dots_indicator: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 21cc2c4..6b47711 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -75,7 +75,7 @@ dependencies: url_launcher: ^6.1.12 dio: ^5.3.3 in_app_review: ^2.0.8 - disk_space_plus: ^0.2.5 + disk_space_plus: ^0.2.6 share_plus: ^10.1.4 app_links: ^6.3.2 uri_to_file: From 8057e23e63617c70d6041998df5a702529e7bca6 Mon Sep 17 00:00:00 2001 From: Moseco Date: Sat, 5 Jul 2025 22:36:04 +0900 Subject: [PATCH 2/3] fix: remove flashcard flip from tutorial --- lib/ui/views/flashcards/flashcards_view.dart | 22 +++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/lib/ui/views/flashcards/flashcards_view.dart b/lib/ui/views/flashcards/flashcards_view.dart index 5c7ba24..096af2f 100644 --- a/lib/ui/views/flashcards/flashcards_view.dart +++ b/lib/ui/views/flashcards/flashcards_view.dart @@ -47,7 +47,7 @@ class FlashcardsView extends HookWidget { if (animation != null) { void handler(status) { if (status == AnimationStatus.completed) { - _showTutorial(context, viewModel, flipCardController); + _showTutorial(context); animation.removeStatusListener(handler); } } @@ -59,7 +59,7 @@ class FlashcardsView extends HookWidget { const Duration(milliseconds: 150), () { if (context.mounted) { - _showTutorial(context, viewModel, flipCardController); + _showTutorial(context); } }, ); @@ -198,22 +198,10 @@ class FlashcardsView extends HookWidget { ); } - void _showTutorial( - BuildContext context, - FlashcardsViewModel viewModel, - FlipCardController flipCardController, - ) { + void _showTutorial(BuildContext context) { TutorialCoachMark( pulseEnable: false, onSkip: () => false, - onFinish: () async { - if (viewModel.activeFlashcards.isNotEmpty) { - await Future.delayed(const Duration(milliseconds: 100)); - flipCardController.flip(); - await Future.delayed(const Duration(milliseconds: 350)); - flipCardController.flip(); - } - }, targets: [ TargetFocus( identify: 'answersKey', @@ -233,6 +221,10 @@ class FlashcardsView extends HookWidget { Text.rich( TextSpan( children: [ + TextSpan( + text: + 'Tap the flashcard to reveal the meaning or long press to see more details.\n\n', + ), TextSpan( text: 'Wrong', style: TextStyle( From b27e548ed9be7a28f2d1a9c978108c4c4189057d Mon Sep 17 00:00:00 2001 From: Moseco Date: Sat, 5 Jul 2025 22:59:35 +0900 Subject: [PATCH 3/3] chore: update version and changelog --- lib/ui/views/about/about_view.dart | 2 +- lib/ui/views/changelog/changelog_view.dart | 3 +++ pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ui/views/about/about_view.dart b/lib/ui/views/about/about_view.dart index 503e388..aad3b5d 100644 --- a/lib/ui/views/about/about_view.dart +++ b/lib/ui/views/about/about_view.dart @@ -32,7 +32,7 @@ class AboutView extends StackedView { 'Sagase', style: TextStyle(fontSize: 24), ), - const Text('1.4.1'), + const Text('1.4.2'), const SizedBox(height: 16), Text.rich( textAlign: TextAlign.left, diff --git a/lib/ui/views/changelog/changelog_view.dart b/lib/ui/views/changelog/changelog_view.dart index a20eb09..537ff8d 100644 --- a/lib/ui/views/changelog/changelog_view.dart +++ b/lib/ui/views/changelog/changelog_view.dart @@ -111,6 +111,9 @@ class _ChangelogHistory extends StatelessWidget { return const SizedBox( width: double.infinity, child: Markdown(data: ''' +# [1.4.2] +- Fixed disk space calculation during dictionary download +- Fixed crash effecting some users the first time they opened flashcards # [1.4.1] - Fixed text analysis processing of incomplete conjugations - Fixed a bug with search when the query rapidly changed diff --git a/pubspec.yaml b/pubspec.yaml index 6b47711..4ed5c8b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A Japanese-English dictionary and learning app. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.4.1+22 +version: 1.4.2+23 environment: sdk: '>=3.0.5 <4.0.0'