In this tutorial, we are going to convert our code we created in our previous tutorials into a more organized format. We will learn how to divide our code into classes (stateless / Stateful).
We will first clean our main() function and learn how to use fat Arrows in a flutter.
Then we will move our code into a Class called MyApp in the same file which will contain our Material App and themes. After that, we will create a new Dart file that will be the 1st screen of our project.
Watch Youtube tutorial
How can I Master Flutter? Answer is simple, It’s not about flutter it’s for anything.
If you just stick to one channel and follow the whole process from start till end then you will be able to start your journey with best possible practices.
In this tutorial, we are going to convert our code we created in our previous tutorials into a more organized format. We will learn how to divide our code into classes (stateless / Stateful).
We will first clean our main() function and learn how to use fat Arrows in a flutter.
Then we will move our code into a Class called MyApp in the same file which will contain our Material App and themes. After that, we will create a new Dart file that will be the 1st screen of our project.