glass_devtools_bridge library
Bridges GlassAdaptiveScope diagnostics to a Dart VM service extension.
Scope of what this ships: this registers query-able data
(ext.flutter_liquid_glass_widgets.adaptiveScope) that a Flutter
DevTools extension panel would call via callServiceExtension. It does
not include a DevTools UI panel — a real panel is a separate
extension/devtools/ web app that has to be built and verified against
a live DevTools session (VM service protocol, postMessage extension
API), which isn't something that can be responsibly shipped without that
live verification. This file is the safe, independently-testable half:
the data source such a panel would read from.
Not part of the main liquid_glass_widgets.dart barrel — import it
explicitly, since registering a VM service extension is a deliberate,
app-wide opt-in:
import 'package:flutter_liquid_glass_widgets/glass_devtools_bridge.dart';
GlassAdaptiveScope(
onDiagnostic: GlassDevToolsBridge.record,
child: MyApp(),
)
Once registered, the current quality-tier state is queryable from any VM
service client (including dart:developer-aware tooling, not just a
purpose-built DevTools panel) via
ext.flutter_liquid_glass_widgets.adaptiveScope.
Classes
- GlassDevToolsBridge
- See the library-level doc comment above.