File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ class EmailCodeVerificationPage extends StatelessWidget {
29
29
body: SafeArea (
30
30
child: BlocConsumer <AuthenticationBloc , AuthenticationState >(
31
31
listener: (context, state) {
32
- if (state is AuthenticationFailure ) {
32
+ if (state.status == AuthenticationStatus .failure ) {
33
33
ScaffoldMessenger .of (context)
34
34
..hideCurrentSnackBar ()
35
35
..showSnackBar (
36
36
SnackBar (
37
- content: Text (state.errorMessage),
37
+ content: Text (state.errorMessage! ),
38
38
backgroundColor: colorScheme.error,
39
39
),
40
40
);
41
41
}
42
42
// Successful authentication is handled by AppBloc redirecting.
43
43
},
44
44
builder: (context, state) {
45
- final isLoading = state is AuthenticationLoading ;
45
+ final isLoading = state.status == AuthenticationStatus .loading ;
46
46
47
47
return Padding (
48
48
padding: const EdgeInsets .all (AppSpacing .paddingLarge),
You can’t perform that action at this time.
0 commit comments