1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Improve password forgotten route

This commit is contained in:
Pierre HUBERT 2021-04-17 11:19:18 +02:00
parent 1bf41bcc20
commit bd78f7b198
2 changed files with 14 additions and 10 deletions

View File

@ -1,6 +1,7 @@
import 'package:comunic/helpers/account_helper.dart';
import 'package:comunic/ui/routes/password_reset_route.dart';
import 'package:comunic/ui/widgets/dialogs/cancel_dialog_button.dart';
import 'package:comunic/ui/widgets/login_routes_theme.dart';
import 'package:comunic/ui/widgets/safe_state.dart';
import 'package:comunic/utils/input_utils.dart';
import 'package:comunic/utils/intl_utils.dart';
@ -16,16 +17,18 @@ import 'package:flutter/rendering.dart';
class ForgotPasswordRoute extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(tr("Password forgotten")),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: Center(
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 300),
child: SingleChildScrollView(child: _ResetPasswordBody()),
return LoginRoutesTheme(
child: Scaffold(
appBar: AppBar(
title: Text(tr("Password forgotten")),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: Center(
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 300),
child: SingleChildScrollView(child: _ResetPasswordBody()),
),
),
),
),

View File

@ -32,6 +32,7 @@ class LoginRoutesTheme extends StatelessWidget {
checkColor:
MaterialStateProperty.all(Config.get().splashBackgroundColor),
),
dialogBackgroundColor: Config.get().splashBackgroundColor,
primaryColor: Colors.white,
backgroundColor: Config.get().splashBackgroundColor,
disabledColor: Colors.grey,