Skip to content
pubscout

stacked_shared

1.4.2, released 2 years ago by filledstacks.com

Shared code between the stacked packages.

WASM-readyQuiet but busy
$ flutter pub add stacked_shared
Source repository

What it does

Contains all the code shared between the flutter and pure dart packages to avoid including flutter where it's not required. It integrates with get_it for dependency management.

AI-written summary of version 1.4.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using packages from the Stacked architecture ecosystem that rely on shared core code.
  • You need the shared foundational classes used across stacked packages.

Skip it when

  • You are not using the Stacked architecture ecosystem.
  • You need a standalone dependency injection library without stacked dependencies.

Strengths

  • Avoids including Flutter dependencies where pure Dart is sufficient.
  • Centralizes shared utilities for the Stacked architecture.

Weaknesses

  • Not intended for direct standalone use outside of the Stacked architecture ecosystem.
  • Limited documentation for standalone usage.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

Works with

Packages commonly used together with stacked_shared: ones it builds on, ones built on it, and its own family.