FLUTTER ECOSYSTEM

inherited_state

Simple and clean state management backed by InheritedWidget and DI backed by the service locator pattern.

Latest version
2.1.0
30-day downloads
75
Likes
15
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

InheritedState is a lightweight state management solution for Flutter that leverages InheritedWidget for efficient widget tree updates and the service locator pattern for dependency injection. It provides a clean, simple API to manage app state without boilerplate, making it ideal for small to medium-sized applications. The package ensures minimal rebuilds by only updating widgets that depend on changed state, while also offering easy access to shared services throughout the app. It's designed for developers who want a straightforward alternative to more complex state management solutions.

Use cases
  • Simple app state management
  • Dependency injection in Flutter apps
  • Lightweight alternatives to Provider or Riverpod
  • Managing shared data across widget trees
  • Reducing boilerplate in stateful widgets
Key features
  • Uses InheritedWidget for efficient updates
  • Built-in service locator for DI
  • Minimal boilerplate
  • Automatic widget rebuilds on state changes
  • Clean, readable API
  • Supports all major platforms
Suitable for
  • Developers seeking simplicity
  • Projects with moderate state complexity
  • Teams wanting fast setup
  • Apps needing dependency injection
  • Flutter beginners learning state management
Considerations
  • Not ideal for very large-scale apps
  • Limited advanced features compared to full frameworks
  • Requires understanding of InheritedWidget
  • May need additional tooling for testing
  • Less community support than popular alternatives
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add inherited_state

Categories

Source repository

Related projects

No data available yet.