mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Improve password forgotten route
This commit is contained in:
		@@ -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()),
 | 
				
			||||||
 | 
					            ),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user