From 66629a6a08851ed3a684347478f4d4be3f8cc59a Mon Sep 17 00:00:00 2001 From: Atharv Joshi Date: Sat, 20 Nov 2021 23:28:25 +0530 Subject: [PATCH] Reversed Visibility Icons in Auth Forms , Back Link to Login Page from Sigup page , Fit type of profile photo (#259) * inverted visibility icons in login signup as they are logically correct , added color theme for icons, relevant variable names, back button to login page from signup page * Revert "inverted visibility icons in login signup as they are logically correct , added color theme for icons, relevant variable names, back button to login page from signup page" This reverts commit cc460ec8a097157a77419ab0fc83260b1f7197f0. * password visibilty icons reversed , login button on sigup page , fit type to cover password visibility icons reversed on login form and sign up form , app theme added to these icons link to go back to login page added on signup form BoxFit.cover added to user photo on get user details --- lib/views/auth/login_view.dart | 4 ++-- lib/views/auth/signup_view.dart | 21 +++++++++++++++++---- lib/views/get_user_details_view.dart | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/lib/views/auth/login_view.dart b/lib/views/auth/login_view.dart index 7744be9..1e4976f 100644 --- a/lib/views/auth/login_view.dart +++ b/lib/views/auth/login_view.dart @@ -131,8 +131,8 @@ class LoginScreenState extends State { hintText: 'Password', suffixIcon: IconButton( icon: _showPassword - ? const Icon(Icons.visibility) - : const Icon(Icons.visibility_off), + ? const Icon(Icons.visibility_off , color: RelicColors.backgroundColor,) + : const Icon(Icons.visibility , color: RelicColors.warningColor,), onPressed: () { setState( () { diff --git a/lib/views/auth/signup_view.dart b/lib/views/auth/signup_view.dart index 2be8d3d..11fa76f 100644 --- a/lib/views/auth/signup_view.dart +++ b/lib/views/auth/signup_view.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:modal_progress_hud_nsn/modal_progress_hud_nsn.dart'; +import 'package:relic_bazaar/helpers/constants.dart'; import 'package:relic_bazaar/helpers/input_validators.dart'; import 'package:relic_bazaar/widgets/retro_button.dart'; import 'package:relic_bazaar/services/auth_service.dart'; @@ -134,8 +135,8 @@ class SignUpScreenState extends State { hintText: 'Password', suffixIcon: IconButton( icon: showPassword - ? const Icon(Icons.visibility) - : const Icon(Icons.visibility_off), + ? const Icon(Icons.visibility_off , color: RelicColors.backgroundColor,) + : const Icon(Icons.visibility , color: RelicColors.warningColor,), onPressed: () { setState(() { showPassword = !showPassword; @@ -173,8 +174,8 @@ class SignUpScreenState extends State { hintText: 'Confirm Password', suffixIcon: IconButton( icon: showConfirmPassword - ? const Icon(Icons.visibility) - : const Icon(Icons.visibility_off), + ? const Icon(Icons.visibility_off , color: RelicColors.backgroundColor,) + : const Icon(Icons.visibility , color: RelicColors.warningColor,), onPressed: () { setState(() { showConfirmPassword = !showConfirmPassword; @@ -267,6 +268,18 @@ class SignUpScreenState extends State { 'assets/items/google.png', ), ), + + ), + ), + ), + Center( + child: TextButton( + onPressed: () => Navigator.pop(context), + child: const Text( + 'Login', + style: TextStyle( + color: Colors.white, + ), ), ), ), diff --git a/lib/views/get_user_details_view.dart b/lib/views/get_user_details_view.dart index deecc53..be13101 100644 --- a/lib/views/get_user_details_view.dart +++ b/lib/views/get_user_details_view.dart @@ -120,7 +120,7 @@ class _GetUserDetailsViewState extends State { Icons.add_a_photo, size: 40, ) - : Image.file(_image!), + : Image.file(_image! , fit: BoxFit.cover,), ), ), SizedBox(