mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00

Update email and password validation logic in the LoginForm widget to only perform validation when the state is not AuthTokenError. This ensures that validation is skipped when there is an authentication token error.
30 lines
706 B
Dart
30 lines
706 B
Dart
// ignore_for_file: avoid_print
|
|
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
class MyBlocObserver extends BlocObserver {
|
|
@override
|
|
void onCreate(BlocBase bloc) {
|
|
super.onCreate(bloc);
|
|
print('onCreate -- ${bloc.runtimeType}');
|
|
}
|
|
|
|
@override
|
|
void onChange(BlocBase bloc, Change change) {
|
|
super.onChange(bloc, change);
|
|
print('onChange -- ${bloc.runtimeType}, $change');
|
|
}
|
|
|
|
@override
|
|
void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
|
|
print('onError -- ${bloc.runtimeType}, $error');
|
|
super.onError(bloc, error, stackTrace);
|
|
}
|
|
|
|
@override
|
|
void onClose(BlocBase bloc) {
|
|
print('onClose -- ${bloc.runtimeType}');
|
|
super.onClose(bloc);
|
|
}
|
|
}
|