Skip to content
pubscout

devtools_app_shared

0.5.1, released 7 months ago by flutter.dev

Shared UI widgets, utilities and VM‑service helpers for Flutter DevTools extensions.

WASM-ready
$ flutter pub add devtools_app_shared
Source repository

What it does

Provides common DevTools‑styled widgets, global‑variable helpers, lifecycle mixins, and service‑manager APIs. It centralises UI and service logic used across DevTools and its extensions.

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

Use it when

  • You are building a DevTools plugin or extension and need the same UI components and service helpers as the main DevTools app.
  • You want consistent styling and utilities (globals, AutoDisposeMixin, service management) across multiple tooling surfaces.

Skip it when

  • You are developing a regular consumer Flutter app that does not integrate with DevTools.
  • You need a full‑featured UI kit or theming system beyond DevTools styling.

Strengths

  • Ensures visual and functional consistency with official DevTools.
  • Reduces duplication of service‑manager and utility code across tooling projects.
  • Includes ready‑made DevTools‑styled widgets and mixins.

Weaknesses

  • Tailored to DevTools use‑case; may be overkill for general apps.
  • Adds a dependency on many DevTools‑specific packages.
  • Limited documentation beyond the README examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
11
import 'package:devtools_app_shared/utils.dart';

MyCoolClass get coolClass => globals[MyCoolClass] as MyCoolClass;

void main() {
  setGlobal(MyCoolClass, MyCoolClass());
  coolClass.foo();
}

Works with

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