The objective of this repository is to understand how to manage state in Flutter. I have used various Flutter architecture choices and learn to use the officially recommended Provider package to manage our app state.
A todolist app to keep track of all your tasks locally on your phone.
- Understood what is state and why we need to manage it.
- Understood the difference between ephemeral (local) state and app state.
- Saw the problems with simply relying on setState().
- Learnt about the concept of Prop Drilling.
- Examined various popular ways of managing app state for Flutter projects.
- Learnt about the List Builder.
- Use the Flutter BottomSheet Widget.
- Learnt to lift state up to be able to access it from children widgets.
- Learnt about design patterns and why they are useful.
- Understood how the Provider package works and used it to manage app state.
- Understood how the Shared Preferences package work and used it to store Tasks locally on my phone instead of using a cloud functionality like Firebase Cloud Firestore.
- Clone the repository.
- Open it in VSCode or Android Studio
- Go to pubspec.yaml and click on 'Pub get' to download all the dependencies used in project.
- Use and Modify the project as per your choice.