Search packages, repositories and app categories

Package detailsv2.0.2

go_provider

Easily scope providers to routes with GoProviderRoute and ShellProviderRoute.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
536
Likes
25
Pub points
160

Install package

flutter pub add go_provider

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

GoProviderRoute and ShellProviderRoute simplify scoping providers to specific routes in Flutter applications. This package enhances routing by allowing developers to manage state and dependencies at the route level, ensuring providers are created and disposed of appropriately when navigating. It integrates seamlessly with GoRouter, offering a clean way to isolate state per route or shared state across nested routes using shell routes. Ideal for apps with complex navigation structures requiring fine-grained control over provider lifecycle.

Use cases

  • Scoped state management per route
  • Nested route state sharing via shell routes
  • Simplifying provider setup in complex navigation flows
  • Managing route-specific dependencies
  • Reducing boilerplate in route-based state handling

Key features

  • Route-scoped providers with GoProviderRoute
  • Shell route support for shared state
  • Automatic provider disposal on route exit
  • Seamless integration with GoRouter
  • Minimal configuration required

Suitable for

  • Apps with deep navigation hierarchies
  • Developers using GoRouter for routing
  • Projects needing isolated route state
  • Teams seeking cleaner provider management
  • Complex forms or multi-step workflows

Considerations

  • Requires GoRouter for full functionality
  • Limited to use within GoRouter-based navigation
  • May increase complexity for simple apps
  • Provider scope must be carefully planned
  • Not suitable for global app-wide state without shell routes

Categories

Dependencies

Dependency list 2 items

Projects using this package

No data available yet.