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
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.
- vm_servicedevtools_app_shared depends on itA library to communicate with a service implementing the Dart VM service protocol.
- webdevtools_app_shared depends on itLightweight bindings for browser APIs via JS interop
- loggingdevtools_app_shared depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- devtools_shareddevtools_app_shared depends on itShared Dart structures and server classes between devtools_app and other tools.
- url_launcherdevtools_app_shared depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- dds_service_extensionsdevtools_app_shared depends on itExtension methods for package:vm_service to make requests to a Dart Development Service instance.
- dtddevtools_app_shared depends on itClient library for communicating with the Dart Tooling Daemon (DTD).
- pointer_interceptordevtools_app_shared depends on itA widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.