WT 1.1.14 Tutorial, Sports, New goals

This commit is contained in:
bossanyit
2021-05-02 17:12:42 +02:00
parent 5fe8f76f48
commit c901b07bf8
65 changed files with 2472 additions and 620 deletions
+5
View File
@@ -61,6 +61,11 @@ class SettingsBloc extends Bloc<SettingsEvent, SettingsState> with Logging {
}
Cache().initBadges();
yield SettingsReady();
} else if (event is SettingsActivateTutorial) {
yield SettingsLoading();
Cache().activitiesDone[event.activity.toStr()] = false;
print(" ----------------- Setting ${event.activity} to false");
yield SettingsReady();
}
}
+8
View File
@@ -31,3 +31,11 @@ class SettingsSetHardware extends SettingsEvent {
@override
List<Object> get props => [this.hasHardware];
}
class SettingsActivateTutorial extends SettingsEvent {
final ActivityDone activity;
const SettingsActivateTutorial({required this.activity});
@override
List<Object> get props => [this.activity];
}