cobalt_talker_flutter 1.6.0
cobalt_talker_flutter: ^1.6.0 copied to clipboard
Dresses talker's log screen in the same palette as the Cobalt inspector, so the graph's events and its log read as one tool inside your app.
cobalt_talker_flutter example #
import 'package:cobalt_talker/cobalt_talker.dart';
import 'package:cobalt_talker_flutter/cobalt_talker_flutter.dart';
import 'package:talker/talker.dart';
final talker = Talker();
final scope = await CobaltApplication.start(
root: const AppScope(),
observers: [CobaltTalkerObserver(talker)],
);
// …and, from a debug menu:
Navigator.of(context).push(
MaterialPageRoute<void>(builder: (_) => CobaltTalkerScreen(talker: talker)),
);
The screen takes its colours from CobaltInspectorTheme when one is above it, and from the
application's own Theme when none is. A full example lives in
examples/graph_events.