From ada23abbc5b6c97482732857bf309f9bdce23b81 Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Wed, 30 Apr 2025 09:50:45 +0200 Subject: [PATCH] fix: always call the splashHandler with the splashScreenFuture and killswitchService when a splashScreenBuilder is provided --- CHANGELOG.md | 3 +++ lib/src/user_stories/flutter_start_userstory_navigator.dart | 3 ++- pubspec.yaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86bfcf6..0ce1475 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.2.4 +- Fixed the userstory to always call the splashScreenFuture and killswitchservice logic when a custom splashScreenBuilder is provided + ## 4.2.3 - Added check if introduction should be shown according to the service before showing the introduction at all diff --git a/lib/src/user_stories/flutter_start_userstory_navigator.dart b/lib/src/user_stories/flutter_start_userstory_navigator.dart index 7f1b379..11cce90 100644 --- a/lib/src/user_stories/flutter_start_userstory_navigator.dart +++ b/lib/src/user_stories/flutter_start_userstory_navigator.dart @@ -125,10 +125,11 @@ Widget _splashScreen( ); } + unawaited(splashHandler()); + var builder = configuration.splashScreenBuilder; if (builder == null) { - unawaited(splashHandler()); return Scaffold( backgroundColor: configuration.splashScreenBackgroundColor, body: Center( diff --git a/pubspec.yaml b/pubspec.yaml index eafa406..f582475 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_start description: "Flutter_start is a package that allows you to jumpstart your application with a splashScreen, introduction and a home." -version: 4.2.3 +version: 4.2.4 publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub @@ -16,7 +16,7 @@ dependencies: package_info_plus: ">=8.0.0 <9.0.0" flutter_introduction: hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub - version: "^5.0.0" + version: ^5.0.0 flutter_introduction_shared_preferences: hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub/ version: ^5.0.0