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

Fix password reset route theme

This commit is contained in:
Pierre HUBERT 2021-04-17 11:26:37 +02:00
parent bd78f7b198
commit f6e45fcc76
2 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,7 @@ import 'package:comunic/helpers/account_helper.dart';
import 'package:comunic/models/res_check_password_reset_token.dart';
import 'package:comunic/ui/dialogs/input_new_password_dialog.dart';
import 'package:comunic/ui/widgets/async_screen_widget.dart';
import 'package:comunic/ui/widgets/login_routes_theme.dart';
import 'package:comunic/ui/widgets/new_password_input_widget.dart';
import 'package:comunic/ui/widgets/safe_state.dart';
import 'package:comunic/utils/intl_utils.dart';
@ -23,11 +24,13 @@ class PasswordResetRoute extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
return LoginRoutesTheme(
child: Scaffold(
appBar: AppBar(
title: Text(tr("Change your password")),
),
body: _PasswordResetBody(token: token),
),
);
}
}

View File

@ -33,6 +33,12 @@ class LoginRoutesTheme extends StatelessWidget {
MaterialStateProperty.all(Config.get().splashBackgroundColor),
),
dialogBackgroundColor: Config.get().splashBackgroundColor,
dialogTheme: DialogTheme(
contentTextStyle: TextStyle(
color: Colors.white,
),
),
buttonTheme: ButtonThemeData(buttonColor: Colors.white),
primaryColor: Colors.white,
backgroundColor: Config.get().splashBackgroundColor,
disabledColor: Colors.grey,