w
1) использовать текстовые контроллеры для каждого поля
2) в каждом поле есть свойство onSave, при сохранении общей формы там запишется введенное значение
Size: a a a
w
T
w
AK
Э
С
w
onPressed: () {
if (_formKey.currentState.validate()) {
print(_formKey.currentState);
// message(FormState#8117e)
}
},
w
w
w
await loginRepository.
.postLogin(event.email, event.password)
.then((value) => {
if (value is DioError) {
throw Exception(value)
},
LoginLoadedState(loadedLogin: value), //yield
})
.catchError((err) => { // сообщение на этой строке
print(err),
LoginErrorState(),
});
A value of type 'Set<void>' can't be returned by the 'onError' handler because it must be assignable to 'FutureOr<Set<LoginLoadedState>>
w
value = await loginRepository.postLogin(event.email, event.password)
if (value is DioError) {
throw Exception(value)
}
w
w
w
value = await loginRepository.postLogin(event.email, event.password)
if (value is DioError) {
throw Exception(value)
}
w
V
KZ
await loginRepository.
.postLogin(event.email, event.password)
.then((value) => {
if (value is DioError) {
throw Exception(value)
},
LoginLoadedState(loadedLogin: value), //yield
})
.catchError((err) => { // сообщение на этой строке
print(err),
LoginErrorState(),
});
A value of type 'Set<void>' can't be returned by the 'onError' handler because it must be assignable to 'FutureOr<Set<LoginLoadedState>>
w
KZ