Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login signup feature #1

Open
wants to merge 11 commits into
base: Develop
Choose a base branch
from
Open

Conversation

JanakMistry2000
Copy link
Owner

@JanakMistry2000 JanakMistry2000 commented Jan 20, 2022

Signup Module

This project is a for sign-up module for Ch-4 Flutter basics Practical.

Dart Version

Dart 2.14.0

Screenshot

login login login

Design Inspiration

This design of login and sign up module is inspired from this https://www.studioamigos.com/login-animation-studio/

lib/main.dart Outdated Show resolved Hide resolved

class login_signup_state extends State<login_signup>{

TextEditingController _txt1 = TextEditingController();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable names should always be meaningful.

FocusNode contact = FocusNode();
final _formKey = GlobalKey<FormState>();
final _formKey2 = GlobalKey<FormState>();
late double h1,h2,h3; // this will be used for setting margin over waves
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good practice to name a variable. Variable names should always be meaningful.

final _formKey = GlobalKey<FormState>();
final _formKey2 = GlobalKey<FormState>();
late double h1,h2,h3; // this will be used for setting margin over waves
bool first_pane= true,onstart=true,display_text=true;// true if first page is open, false if close. onstart is only set once
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please declare variables in the new line if you need to provide an initial value.

return "Please enter an email id";
}
String email_format = "[a-zA-Z0-9\+\.\_\%\-\+]{1,256}"+ //Regular Expression to match the email id
"\\@""[a-zA-Z0-9\\-]{0,64}"+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static strings should not be in the class. Create a separate category and declare all the static strings there.

Expanded(
child: AnimatedContainer(
margin: EdgeInsets.fromLTRB(0, h1, 0, 0),
//height: 500,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented code should not be in commit.

),
Padding(
padding: const EdgeInsets.all(15.0),
child: Text("WELCOME!",style: TextStyle(color: Colors.white,fontSize: 35),),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formate this file properly.

),
style: TextStyle(color: Colors.white),
),
const SizedBox(height: 50,),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not use the coma at the last parameter when there are two or less than two parameters.

borderSide: BorderSide(color: Colors.white),
),
hintStyle: TextStyle(color: Colors.grey[400]),
suffixIcon: IconButton(onPressed: _pass_vis, icon: Icon(Icons.remove_red_eye),color: Colors.white,),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please formate the class properly.

}
}

class draw_curve extends CustomPainter{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a separate file for a new class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants