mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix password reset route theme
This commit is contained in:
		@@ -2,6 +2,7 @@ import 'package:comunic/helpers/account_helper.dart';
 | 
				
			|||||||
import 'package:comunic/models/res_check_password_reset_token.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/dialogs/input_new_password_dialog.dart';
 | 
				
			||||||
import 'package:comunic/ui/widgets/async_screen_widget.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/new_password_input_widget.dart';
 | 
				
			||||||
import 'package:comunic/ui/widgets/safe_state.dart';
 | 
					import 'package:comunic/ui/widgets/safe_state.dart';
 | 
				
			||||||
import 'package:comunic/utils/intl_utils.dart';
 | 
					import 'package:comunic/utils/intl_utils.dart';
 | 
				
			||||||
@@ -23,11 +24,13 @@ class PasswordResetRoute extends StatelessWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    return Scaffold(
 | 
					    return LoginRoutesTheme(
 | 
				
			||||||
 | 
					      child: Scaffold(
 | 
				
			||||||
        appBar: AppBar(
 | 
					        appBar: AppBar(
 | 
				
			||||||
          title: Text(tr("Change your password")),
 | 
					          title: Text(tr("Change your password")),
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        body: _PasswordResetBody(token: token),
 | 
					        body: _PasswordResetBody(token: token),
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,6 +33,12 @@ class LoginRoutesTheme extends StatelessWidget {
 | 
				
			|||||||
                  MaterialStateProperty.all(Config.get().splashBackgroundColor),
 | 
					                  MaterialStateProperty.all(Config.get().splashBackgroundColor),
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
            dialogBackgroundColor: Config.get().splashBackgroundColor,
 | 
					            dialogBackgroundColor: Config.get().splashBackgroundColor,
 | 
				
			||||||
 | 
					            dialogTheme: DialogTheme(
 | 
				
			||||||
 | 
					              contentTextStyle: TextStyle(
 | 
				
			||||||
 | 
					                color: Colors.white,
 | 
				
			||||||
 | 
					              ),
 | 
				
			||||||
 | 
					            ),
 | 
				
			||||||
 | 
					            buttonTheme: ButtonThemeData(buttonColor: Colors.white),
 | 
				
			||||||
            primaryColor: Colors.white,
 | 
					            primaryColor: Colors.white,
 | 
				
			||||||
            backgroundColor: Config.get().splashBackgroundColor,
 | 
					            backgroundColor: Config.get().splashBackgroundColor,
 | 
				
			||||||
            disabledColor: Colors.grey,
 | 
					            disabledColor: Colors.grey,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user