MAD Presentation Using Dart and Flutter
MAD Presentation Using Dart and Flutter
1.Locate the build() method for the _SignUpFormState class. This is the part of the code that builds the SignUp
button. Notice how the button is defined: It's a TextButton with a blue background, white text that says Sign up
and, when pressed, does nothing.
Change the onPressed property to call the (non-existent) method that will display the welcome screen.
Create the connection to show the new screen. In the build() method for SignUpApp.
Step 2 : Enable Sign in Progress Tracking :
This sign in screen has three fields. Next, you will enable the ability to track the user's progress on filling
in the form fields, and update the app's UI when the form is complete.
1. Add a method to update _formProgress. In the _SignUpFormState class, add a new method called
_updateFormProgress():
In the build() method of the _SignUpFormState class, add a callback to the Form widget's onChanged argument.
Add the code below marked as NEW:
In step 1, you modified the onPressed property for the Sign up button to display the welcome screen. Now,
update that button to display the welcome screen only when the form is completely filled in .
Step 3 : Add Animation For Sign in Progress :
It's time to add animation! In this final step, you'll create the animation for the
LinearProgressIndicator at the top of the sign in area. The animation has the following
behavior :
● When the app starts, a tiny red bar appears across the top of the sign in area.
● When one text field contains text, the red bar turns orange and animates 0.15 of the way
across the sign in area.
● When two text fields contain text, the orange bar turns yellow and animates half of the way
across the sign in area.
● When all three text fields contain text, the orange bar turns green and animates all the way
across the sign in area. Also, the Sign up button becomes enabled.
1. Add an AnimatedProgressIndicator. At the bottom of the file, add this widget:
3. Run the App .Type anything into the three fields to verify that the animation works, and that
clicking the Sign up button brings up the Welcome screen.
4.Build The APK of your App and Try to Run on Your Mobile Phone.
5.Here is the Final APK of the App That we build and Successfully it’s
Running on the Mobile.
❏ References Taken From :
➢ https://docs.flutter.dev/get-started/codelab-web
➢ https://www.javatpoint.com/flutter
➢ https://www.scribd.com/presentation/697600978/Flutter-ppt-MAD
➢ https://www.geeksforgeeks.org/flutter-tutorial/
➢ https://flutter.dev/learn