1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-27 05:18:50 +00:00

Rename route with a more logical name

This commit is contained in:
Pierre HUBERT 2021-02-18 18:28:57 +01:00
parent c19cbaac88
commit 16ec9a8e00
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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<LoginRoute> {
void _openResetPasswordPage() {
Navigator.of(context)
.push(MaterialPageRoute(builder: (c) => ResetPasswordRoute()));
.push(MaterialPageRoute(builder: (c) => ForgotPasswordRoute()));
}
/// Build error card