Skip to content
Open
6 changes: 3 additions & 3 deletions lib/src/foundation/bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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():[];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your problem with spacing? :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what is the problem, the log error is:

lib/src/foundation/bloc.dart
lib/src/rendering/custom_layout.dart
test/feature_discovery_test.dart
Formatting failed: 1
Error: Process completed with exit code 1.

_activeStepIndex = -1;

await _nextStep();
Expand Down Expand Up @@ -156,9 +156,9 @@ class Bloc {
Future<Set<String>> get _alreadyCompletedSteps async {
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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down