WT 1.1.14 Tutorial, Sports, New goals
This commit is contained in:
@@ -113,6 +113,8 @@ class TestSetEditBloc extends Bloc<TestSetEditEvent, TestSetEditState> {
|
||||
Cache().saveActiveExercisePlan(exercisePlan, details);
|
||||
Track().track(TrackingEvent.test_set_edit, eventValue: templateName);
|
||||
yield TestSetEditSaved();
|
||||
} else if (event is TestSetEditAddError) {
|
||||
yield TestSetEditError(message: event.message);
|
||||
}
|
||||
} on Exception catch (e) {
|
||||
yield TestSetEditError(message: e.toString());
|
||||
|
||||
@@ -47,3 +47,10 @@ class TestSetEditSkipExerciseType extends TestSetEditEvent {
|
||||
class TestSetEditSubmit extends TestSetEditEvent {
|
||||
const TestSetEditSubmit();
|
||||
}
|
||||
|
||||
class TestSetEditAddError extends TestSetEditEvent {
|
||||
final String message;
|
||||
const TestSetEditAddError({required this.message});
|
||||
@override
|
||||
List<Object> get props => [message];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user