Skip to content

Commit

Permalink
Reversed Visibility Icons in Auth Forms , Back Link to Login Page fro…
Browse files Browse the repository at this point in the history
…m 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 cc460ec.

* 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
  • Loading branch information
Atharv-Joshi authored Nov 20, 2021
1 parent 17bd6ef commit 66629a6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/views/auth/login_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class LoginScreenState extends State<LoginScreen> {
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(
() {
Expand Down
21 changes: 17 additions & 4 deletions lib/views/auth/signup_view.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -134,8 +135,8 @@ class SignUpScreenState extends State<SignUpScreen> {
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;
Expand Down Expand Up @@ -173,8 +174,8 @@ class SignUpScreenState extends State<SignUpScreen> {
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;
Expand Down Expand Up @@ -267,6 +268,18 @@ class SignUpScreenState extends State<SignUpScreen> {
'assets/items/google.png',
),
),

),
),
),
Center(
child: TextButton(
onPressed: () => Navigator.pop(context),
child: const Text(
'Login',
style: TextStyle(
color: Colors.white,
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/views/get_user_details_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class _GetUserDetailsViewState extends State<GetUserDetailsView> {
Icons.add_a_photo,
size: 40,
)
: Image.file(_image!),
: Image.file(_image! , fit: BoxFit.cover,),
),
),
SizedBox(
Expand Down

0 comments on commit 66629a6

Please sign in to comment.