1. Learn Flutter — solved exercises > 
  2. Exercises > 
  3. State and architecture

State and architecture

Managing state correctly is the skill that separates a functional app from a scalable one. These exercises cover Flutter’s three most popular approaches: setState for local single-widget state, Provider with ChangeNotifier for shared global state, and Riverpod with StateProvider as a modern, testable alternative.

  • BLoC with Cubit in Flutter: solved exercise
  • BLoC with typed events and states in Flutter: solved exercise
  • GetX in Flutter: solved state management exercise
  • Dependency injection with get_it in Flutter: solved exercise
  • DTO to domain mapper in Flutter: solved exercise
  • Feature module with DI and testing in Flutter: solved exercise
  • Injection with Riverpod providers: solved exercise
  • Layered architecture in Flutter: solved exercise
  • Optimistic update in Flutter: solved exercise
  • Repository and use cases in Flutter: solved exercise
  • Riverpod in Flutter: solved counter exercise
  • Provider in Flutter for global state: solved exercise
  • Flutter Counter with setState: solved exercise step by step
May 25, 2026
Flutter en rigle.dev

  • Home


    • Widgets and UI
      • Forms and navigation
        • State and architecture
          • BLoC with Cubit in Flutter: solved exercise
          • BLoC with typed events and states in Flutter: solved exercise
          • GetX in Flutter: solved state management exercise
          • Dependency injection with get_it in Flutter: solved exercise
          • DTO to domain mapper in Flutter: solved exercise
          • Feature module with DI and testing in Flutter: solved exercise
          • Injection with Riverpod providers: solved exercise
          • Layered architecture in Flutter: solved exercise
          • Optimistic update in Flutter: solved exercise
          • Repository and use cases in Flutter: solved exercise
          • Riverpod in Flutter: solved counter exercise
          • Provider in Flutter for global state: solved exercise
          • Flutter Counter with setState: solved exercise step by step
        • API and async
          • Persistence and data
            • Testing and resources
              • Tools & Code
                • Device
                • Internationalization

                •  
                •  

                Built with by Hugo