Обновлен проект. Добавлена БД
This commit is contained in:
@@ -39,7 +39,10 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
Future<void> sendCode(String code, String uid) async {
|
||||
final bool res = await _authInterface.sendCode(code, uid);
|
||||
|
||||
if (!res) toInitialState();
|
||||
if (!res) {
|
||||
toInitialState();
|
||||
return;
|
||||
}
|
||||
|
||||
globalRouter.replace(CollectionRoute());
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class AuthTextField extends StatelessWidget {
|
||||
focusedErrorBorder: border,
|
||||
hintText: 'Введите e-mail',
|
||||
hintStyle: const TextStyle(fontWeight: FontWeight.w400, height: 1.2),
|
||||
errorStyle: SemiBold12px().style.copyWith(color: AppColors.red),
|
||||
errorStyle: SemiBold12px().style.copyWith(color: AppColors.info_red),
|
||||
suffixIconConstraints: const BoxConstraints(minWidth: 0, minHeight: 0),
|
||||
suffixIcon: Padding(
|
||||
padding: const EdgeInsets.only(right: 12).r,
|
||||
|
||||
Reference in New Issue
Block a user