1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59: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/helpers/account_helper.dart';
import 'package:comunic/ui/routes/password_reset_route.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/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/ui/widgets/safe_state.dart';
import 'package:comunic/utils/input_utils.dart'; import 'package:comunic/utils/input_utils.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
@ -16,16 +17,18 @@ import 'package:flutter/rendering.dart';
class ForgotPasswordRoute extends StatelessWidget { class ForgotPasswordRoute extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return LoginRoutesTheme(
appBar: AppBar( child: Scaffold(
title: Text(tr("Password forgotten")), appBar: AppBar(
), title: Text(tr("Password forgotten")),
body: Padding( ),
padding: const EdgeInsets.all(8.0), body: Padding(
child: Center( padding: const EdgeInsets.all(8.0),
child: ConstrainedBox( child: Center(
constraints: BoxConstraints(maxWidth: 300), child: ConstrainedBox(
child: SingleChildScrollView(child: _ResetPasswordBody()), constraints: BoxConstraints(maxWidth: 300),
child: SingleChildScrollView(child: _ResetPasswordBody()),
),
), ),
), ),
), ),

View File

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