Explain the concept of state management in Flutter and why it’s important for app development.
What is the Provider package in Flutter? Describe how it works for managing state.
Create a simple todo list application in Flutter using Provider where users can add, remove, and mark tasks as completed.
Discuss the advantages of using Provider over global variables or inherited widgets for state management in Flutter apps.
Implement a theme switching feature in a Flutter app using Provider. Users should be able to switch between light and dark themes.
Describe the difference between ChangeNotifierProvider and Consumer widgets in the context of the Provider package. Give an example of how each is used.