From 424588e8acd47e146e91da56780e5130c498ecd9 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Wed, 23 Sep 2020 16:21:09 -0500 Subject: [PATCH 1/9] fix bug caused by _steps null in method _alreadyCompletedSteps --- example/.flutter-plugins-dependencies | 2 +- lib/src/foundation/bloc.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index ee157144..b7c31b57 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}]} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-09-23 16:14:16.350188","version":"1.17.0"} \ No newline at end of file diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index fc8802de..c17f8378 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -156,6 +156,7 @@ class Bloc { Future> get _alreadyCompletedSteps async { if (!recordInSharedPrefs) return {}; final prefs = await SharedPreferences.getInstance(); + if(_steps == null) return [].toSet(); return _steps .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) .toSet(); From 919bdcba8dc2b1f898c70b84db386f5a77f2deb5 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Wed, 23 Sep 2020 16:24:43 -0500 Subject: [PATCH 2/9] update version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0a770d4f..402e9a33 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: >- A Flutter package that implements Material Design Feature discovery to show a description of specific features to new users. See https://tinyurl.com/FeatureDiscovery -version: 0.12.0+2 +version: 0.12.1+3 homepage: https://github.com/ayalma/feature_discovery environment: From 21f11e91d3e73b74e2094f93724576262b6f4a6d Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Wed, 23 Sep 2020 16:38:14 -0500 Subject: [PATCH 3/9] fix bug caused by _steps null in method _alreadyCompletedSteps --- example/.flutter-plugins-dependencies | 2 +- lib/src/foundation/bloc.dart | 1 + pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index ee157144..b7c31b57 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}]} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/frsisalimao/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-09-23 16:14:16.350188","version":"1.17.0"} \ No newline at end of file diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index fc8802de..946cdf30 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -156,6 +156,7 @@ class Bloc { Future> get _alreadyCompletedSteps async { if (!recordInSharedPrefs) return {}; final prefs = await SharedPreferences.getInstance(); + if(_steps == null) return {}; return _steps .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) .toSet(); diff --git a/pubspec.yaml b/pubspec.yaml index 0a770d4f..402e9a33 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: >- A Flutter package that implements Material Design Feature discovery to show a description of specific features to new users. See https://tinyurl.com/FeatureDiscovery -version: 0.12.0+2 +version: 0.12.1+3 homepage: https://github.com/ayalma/feature_discovery environment: From 6d881ef258a7bfdedc4207e17c641c1f3d00a7f4 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Wed, 23 Sep 2020 16:45:32 -0500 Subject: [PATCH 4/9] fix bug caused by _steps null in method _alreadyCompletedSteps --- lib/src/foundation/bloc.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index 946cdf30..a23cb6fa 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -154,9 +154,8 @@ class Bloc { } Future> get _alreadyCompletedSteps async { - if (!recordInSharedPrefs) return {}; + if (!recordInSharedPrefs || _steps == null) return {}; final prefs = await SharedPreferences.getInstance(); - if(_steps == null) return {}; return _steps .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) .toSet(); From 633b8ab662adb8a813c2022498886b3cf971cbd8 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Wed, 23 Sep 2020 17:19:23 -0500 Subject: [PATCH 5/9] fix bug caused by _steps null in method _alreadyCompletedSteps --- lib/src/foundation/bloc.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index a23cb6fa..8ca06768 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -110,7 +110,7 @@ class Bloc { _steps = steps; _stepsToIgnore = await _alreadyCompletedSteps; - _steps = _steps.where((s) => !_stepsToIgnore.contains(s)).toList(); + _steps = _steps!=null?_steps.where((s) => !_stepsToIgnore.contains(s)).toList():[]; _activeStepIndex = -1; await _nextStep(); @@ -154,11 +154,11 @@ class Bloc { } Future> get _alreadyCompletedSteps async { - if (!recordInSharedPrefs || _steps == null) return {}; + if (!recordInSharedPrefs) return {}; final prefs = await SharedPreferences.getInstance(); - return _steps + return _steps!=null?_steps .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) - .toSet(); + .toSet():{}; } /// Returns true iff this step has been previously From f6fb3cbb627573570a9642705519e65320016b61 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Mon, 30 Nov 2020 13:08:38 -0500 Subject: [PATCH 6/9] format code --- example/.gitignore | 1 + lib/src/foundation/bloc.dart | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/example/.gitignore b/example/.gitignore index 453ce06b..78d07146 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -22,6 +22,7 @@ **/doc/api/ .dart_tool/ .flutter-plugins +.flutter-plugins-dependencies .packages .metadata .pub-cache/ diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index 8ca06768..51cd8e24 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -110,7 +110,9 @@ class Bloc { _steps = steps; _stepsToIgnore = await _alreadyCompletedSteps; - _steps = _steps!=null?_steps.where((s) => !_stepsToIgnore.contains(s)).toList():[]; + _steps = _steps != null + ? _steps.where((s) => !_stepsToIgnore.contains(s)).toList() + : []; _activeStepIndex = -1; await _nextStep(); @@ -156,9 +158,11 @@ class Bloc { Future> get _alreadyCompletedSteps async { if (!recordInSharedPrefs) return {}; final prefs = await SharedPreferences.getInstance(); - return _steps!=null?_steps - .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) - .toSet():{}; + return _steps != null + ? _steps + .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) + .toSet() + : {}; } /// Returns true iff this step has been previously From 2493309cd65cf742767b8cd64abaa0bba10e6811 Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Tue, 1 Dec 2020 09:03:25 -0500 Subject: [PATCH 7/9] fix format --- example/.flutter-plugins-dependencies | 2 +- lib/src/foundation/bloc.dart | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index ac31642c..0725bc15 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-10-07 20:05:17.296552","version":"1.22.0"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-12-01 09:00:30.692139","version":"1.17.5"} \ No newline at end of file diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index 51cd8e24..b5c9689f 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -110,9 +110,8 @@ class Bloc { _steps = steps; _stepsToIgnore = await _alreadyCompletedSteps; - _steps = _steps != null - ? _steps.where((s) => !_stepsToIgnore.contains(s)).toList() - : []; + _steps = _steps?.where((s) => !_stepsToIgnore.contains(s))?.toList() ?? []; + _activeStepIndex = -1; await _nextStep(); @@ -158,11 +157,7 @@ class Bloc { Future> get _alreadyCompletedSteps async { if (!recordInSharedPrefs) return {}; final prefs = await SharedPreferences.getInstance(); - return _steps != null - ? _steps - .where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true) - .toSet() - : {}; + return _steps?.where((s) => prefs.getBool('$sharedPrefsPrefix$s') == true)?.toSet() ?? {}; } /// Returns true iff this step has been previously From 92554728fe00f588d06a069cef31e756e25252af Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Tue, 1 Dec 2020 09:06:06 -0500 Subject: [PATCH 8/9] fix format --- example/.flutter-plugins-dependencies | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index 0725bc15..f63968ce 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/frsisalimao/develop/software/flutter_prod/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-12-01 09:00:30.692139","version":"1.17.5"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+2/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.1+1/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/ganeshr/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-10-07 20:05:17.296552","version":"1.22.0"} From 93fe1a6808e02fcc7782606d35550fcd8385e39b Mon Sep 17 00:00:00 2001 From: Fabricio Sisalima Date: Tue, 1 Dec 2020 09:10:16 -0500 Subject: [PATCH 9/9] fix format --- lib/src/foundation/bloc.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/foundation/bloc.dart b/lib/src/foundation/bloc.dart index b5c9689f..07130b12 100644 --- a/lib/src/foundation/bloc.dart +++ b/lib/src/foundation/bloc.dart @@ -111,7 +111,6 @@ class Bloc { _steps = steps; _stepsToIgnore = await _alreadyCompletedSteps; _steps = _steps?.where((s) => !_stepsToIgnore.contains(s))?.toList() ?? []; - _activeStepIndex = -1; await _nextStep();