mirror of
https://github.com/Iconica-Development/flutter_start.git
synced 2025-05-19 10:33:45 +02:00
Compare commits
No commits in common. "master" and "4.2.2" have entirely different histories.
4 changed files with 17 additions and 41 deletions
|
@ -1,9 +1,3 @@
|
||||||
## 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
|
|
||||||
|
|
||||||
## 4.2.2
|
## 4.2.2
|
||||||
- Added custom navigator in the root of the navigator user-story
|
- Added custom navigator in the root of the navigator user-story
|
||||||
|
|
||||||
|
|
|
@ -104,32 +104,28 @@ Widget _splashScreen(
|
||||||
|
|
||||||
if (configuration.useKillswitch && isAllowedToPassThrough) return;
|
if (configuration.useKillswitch && isAllowedToPassThrough) return;
|
||||||
|
|
||||||
var introService = configuration.introductionService ??
|
if ((!configuration.showIntroduction) && context.mounted) {
|
||||||
IntroductionService(SharedPreferencesIntroductionDataProvider());
|
onComplete(context);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var shouldShowIntroduction =
|
if (context.mounted) {
|
||||||
configuration.showIntroduction && await introService.shouldShow();
|
await navigator.pushReplacement(
|
||||||
|
MaterialPageRoute(
|
||||||
if (!context.mounted) return;
|
builder: (context) => _introduction(
|
||||||
|
configuration,
|
||||||
if (!shouldShowIntroduction) return onComplete(context);
|
context,
|
||||||
|
onComplete,
|
||||||
await navigator.pushReplacement(
|
),
|
||||||
MaterialPageRoute(
|
|
||||||
builder: (context) => _introduction(
|
|
||||||
configuration,
|
|
||||||
context,
|
|
||||||
onComplete,
|
|
||||||
),
|
),
|
||||||
),
|
);
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unawaited(splashHandler());
|
|
||||||
|
|
||||||
var builder = configuration.splashScreenBuilder;
|
var builder = configuration.splashScreenBuilder;
|
||||||
|
|
||||||
if (builder == null) {
|
if (builder == null) {
|
||||||
|
unawaited(splashHandler());
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: configuration.splashScreenBackgroundColor,
|
backgroundColor: configuration.splashScreenBackgroundColor,
|
||||||
body: Center(
|
body: Center(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_start
|
name: flutter_start
|
||||||
description: "Flutter_start is a package that allows you to jumpstart your application with a splashScreen, introduction and a home."
|
description: "Flutter_start is a package that allows you to jumpstart your application with a splashScreen, introduction and a home."
|
||||||
version: 4.2.4
|
version: 4.2.2
|
||||||
|
|
||||||
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
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"
|
package_info_plus: ">=8.0.0 <9.0.0"
|
||||||
flutter_introduction:
|
flutter_introduction:
|
||||||
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
version: ^5.0.0
|
version: "^5.0.0"
|
||||||
flutter_introduction_shared_preferences:
|
flutter_introduction_shared_preferences:
|
||||||
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub/
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub/
|
||||||
version: ^5.0.0
|
version: ^5.0.0
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
// This is an example unit test.
|
|
||||||
//
|
|
||||||
// A unit test tests a single function, method, or class. To learn more about
|
|
||||||
// writing unit tests, visit
|
|
||||||
// https://flutter.dev/docs/cookbook/testing/unit/introduction
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('Plus Operator', () {
|
|
||||||
test('should add two numbers together', () {
|
|
||||||
expect(1 + 1, 2);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Reference in a new issue