Skip to content

Commit

Permalink
fix #193 auth screen exception related to no internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mediocre9 committed Jul 31, 2024
1 parent 3042b0b commit 0470252
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/screens/authentication_screen/authentication_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class AuthenticationScreen extends StatelessWidget with StandardAppWidgets {
padding: const EdgeInsets.all(8.0),
child: RichText(
text: TextSpan(
text: 'By signing in, you agree to our ',
text:
"By signing in, you agree to the CUSIT Makerspace R&D Lab’s ",
style: const TextStyle(fontSize: 12, color: Colors.grey),
children: [
TextSpan(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ class AuthenticationScreenCubit extends Cubit<AuthenticationScreenState> {
));
break;

case SignInState.error:
emit(NoInternet(
message:
'Something went wrong. Please check your internet connection.',
));
emit(Initial());
break;

default:
emit(Initial());
break;
Expand Down

0 comments on commit 0470252

Please sign in to comment.