Flutter Beautiful Login/SignUp Responsive UI Design with animation. (2024)

JOSEPHYADUVANSHI

Posted on • Updated on

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (3) Flutter Beautiful Login/SignUp Responsive UI Design with animation. (4) Flutter Beautiful Login/SignUp Responsive UI Design with animation. (5) Flutter Beautiful Login/SignUp Responsive UI Design with animation. (6) Flutter Beautiful Login/SignUp Responsive UI Design with animation. (7)

#dart #flutter #beginners #tutorial

Flutter Beautiful Login/SignUp Responsive UI Design with animation.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (8)

ContentsOfThisPost

  • Introduction

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (9)

  • GitHub Repo

  • Home Screen

  • Login Screen

  • Sign Up Screen

  • Forget Password

  • Routes

  • Text Animation

    INTRODUCTION
    In this lesson, We will learn how to create a Flutter App with responsive UI.
    First let’s create a home screen UI.

  • Home Screen

    > Having well organized code is always a good practice. So, I have created a new file in Screens Folder in the Library section.

    Import the Material Library, and create a Stateful widget, You can use the snippets to create the boiler plate code. After creating the class, we will work on material widget because it provide us very good options for designing our UI. After you can wrap the material widget with another widget i.e. SafeArea.( A widget that insets its child by sufficient padding to avoid intrusions by the operating system. For example, this will indent the child by enough to avoid the status bar at the top of the screen.). If you are using VS code you can use refractor shortCut key to wrap Class with widget, padding, center etc. [ For Windows: ctrl + . and For mac: cmd+. ]
    We will use scaffold class for the AppBar Widget. We can add title widget to create a title for our AppBar. title: takes Text widget which again takes a String dataType. We can further modify it with another widget called TextStyle Widget.

    > So let’s work on the body: of the Scaffold. So, We will use the SingleChildScrollView widget so that our UI will be compatible with different screen sizes. Again, wrap the widget with center so that our image will be aligned in center of the screen. Next we will use column widget to insert our images. To import the images we will use the Image.asset(‘’) widget. We can directly specify our image location address between the parenthesis within the Quotes. Before doing that we also need to update our pubsec.yaml file.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (10)

UnComment the asset section and add the location of the images folder. In my case, I have created a new folder named asset and added all the images there.
After adding the images you can use fit: and BoxFit to adjust the image in the body.

> Up to this it looks Simple, to make it little more beautiful we will add some animation. I am using a package for text animation. I.E. AnimatedTextKit you can add it in dependencies or just run this command in the terminal.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (11)
This is how our HomeScreen Looks after designing the Text with the Animated Text Kit package.

Routes

In Flutter, screens and pages are called routes, To navigate from one page to another we will need routes. So, We have to implement in our code for an interactive UI. I have created a different file in Utilities folder for routes.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (12)

To implement in our App we need to add it in our main.dart file.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (13)

Login Screen

Let’s see the code for our Login Screen.

> This is how it looks:

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (14)

The process is similar as the HomeScreen I.E Stateful classes, animation, Material, Column. etc, So I will discuss only the new added things in this lesson.
From the code, You can see I have used the TextFormField widget for the Email and password section. The TextFormField takes decoration: , hint text icons, label text and many more other widgets to create the form field interactive.
You can easily design as per your wish with the help of TextFormField. After designing the TextFormField, I have added a TextButton for the the forget password screen. Also added the route to the ForgetPassword screen. We can use Navigator.PushNamed() to perform the task. Similarly added the Sign In button using TextButton.icon and navigated it to the HomeScreen when pressed by the User.
Added the text Button just below the Sign In button for Sign Up. Which navigates the user to the Sign Up Screen.
Let’s see the code and its appearance.

> This is how it looks:-)
The codes are almost similar to login Screen, Just gave a different touch for sign Up.

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (15)

Forget Password

Code and Appearance:

> This is how it Looks!

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (16)

If you read up to this, Thank You!

Share and Support! You can subscribe so that you won’t miss any latest posts from me. Also, I have given the Github Repo link. FoRK IT 🍴.

Top comments (3)

Subscribe

Kalifa SENOU

Kalifa SENOU

Junior full-stack web and mobile developer and beginner in data analysis (descriptive)

  • Education

    University Diploma of Technology

  • Work

    learner

  • Joined

Dec 19 '22

  • Copy link

you haven't display the content route.dart, there some file that's not display

JOSEPHYADUVANSHI

JOSEPHYADUVANSHI

TECH ENTHUSIAST || APP DEVELOPMENT ❤️ || eatSleepCode — repeat👨🏻‍💻 | Okay BYEE!

  • Work

    Freelancer

  • Joined

Dec 19 '22

  • Copy link

I understand that you may have been puzzled. The MyRoutes class is located within the routes.dart file. Additionally, you can checkout the code from the Github repository once. Please do not hesitate to contact me if you have any further inquiries.

Kalifa SENOU

Kalifa SENOU

Junior full-stack web and mobile developer and beginner in data analysis (descriptive)

  • Education

    University Diploma of Technology

  • Work

    learner

  • Joined

Dec 20 '22

  • Copy link

thanks you for the repaly

For further actions, you may consider blocking this person and/or reporting abuse

Flutter Beautiful Login/SignUp Responsive UI Design with animation. (2024)
Top Articles
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5521

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.