diff --git a/lib/ui/routes/reset_password_route.dart b/lib/ui/routes/forgot_password_route.dart similarity index 98% rename from lib/ui/routes/reset_password_route.dart rename to lib/ui/routes/forgot_password_route.dart index 0a5a995..8f52dba 100644 --- a/lib/ui/routes/reset_password_route.dart +++ b/lib/ui/routes/forgot_password_route.dart @@ -13,7 +13,7 @@ import 'package:flutter/rendering.dart'; /// /// @author Pierre Hubert -class ResetPasswordRoute extends StatelessWidget { +class ForgotPasswordRoute extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( @@ -133,8 +133,8 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> { _setLoading(false); } catch (e, s) { print("Could not check given email! $e\n$s"); - showSimpleSnack( - context, tr("An error occurred while checking your recovery options !")); + showSimpleSnack(context, + tr("An error occurred while checking your recovery options !")); _setLoading(false); } } diff --git a/lib/ui/routes/login_route.dart b/lib/ui/routes/login_route.dart index 2e6afee..c8a7760 100644 --- a/lib/ui/routes/login_route.dart +++ b/lib/ui/routes/login_route.dart @@ -1,7 +1,7 @@ import 'package:comunic/helpers/account_helper.dart'; import 'package:comunic/models/authentication_details.dart'; import 'package:comunic/ui/routes/create_account_route.dart'; -import 'package:comunic/ui/routes/reset_password_route.dart'; +import 'package:comunic/ui/routes/forgot_password_route.dart'; import 'package:comunic/ui/widgets/init_widget.dart'; import 'package:comunic/ui/widgets/login_scaffold.dart'; import 'package:comunic/utils/input_utils.dart'; @@ -69,7 +69,7 @@ class _LoginRouteState extends State { void _openResetPasswordPage() { Navigator.of(context) - .push(MaterialPageRoute(builder: (c) => ResetPasswordRoute())); + .push(MaterialPageRoute(builder: (c) => ForgotPasswordRoute())); } /// Build error card