Flutter – 3rd application – digging deeper into the toolkit
For this flutter application, I decided to create a simple shopping app.
The last week I started digging deeper into flutter and dart and as always I tried to implement everything in this application.
In my previous post I was kind of disappointed with the ways that I had to use in order to pass data between the different widgets and screens, but this time, I found something magical. Something called provider.
As always I’m not going into technical talks and explanations, I will simply mention the things that I learned so far and my impressions as a flutter beginner.
New things that I learned how to use:
- The provider package. As I already mentioned – this is something amazing that is giving you the flexibility to hook it up everywhere in our applications, listen for changes and rebuild the parts that are listening to them. I also learned how to work with multiple providers
- I learned a lot about state and state management. I learned how to use local and application-wide states.
- I heavily used the consumer class, as it allows us to create more flexible apps.
- I learned how to use and tweak the dismissible class and how to build nice dialogs.
- I also learned how to use, validate and submit forms.
- I learned how to send HTTP requests from a flutter application.
- I learned how to use futures and why they are so useful.
- I learned how to invoke the various application/widget states.
- I learned how to implement authentication mechanisms, maintain the auth tokens locally, auto-login, and auto-logout the users from the application.
As always a few screenshots, the source code and a short video of the application:
In conclusion, the last week was extremely fun for me as I learned a lot of new things about flutter and dart.
The next week I’m planning to tap into the native device functionalities and learn how to use them. So, stay tuned! 🙂