sinew_devtools_ui library

The DevTools overlay, dashboard and inspector pages.

Classes

BuildRibbon
A label in a corner of every screen, such as 1.4.0 (212) · staging. The active host and faults are added to it.
CustomLauncher
No UI from devtools: the app calls DevTools.open() and DevTools.close() from its own trigger.
DevToolAction
Runs run on tap. With confirm, a dialog with that text asks first.
DevToolEntry
One row on the dashboard.
DevToolGroup
Opens a sub-list of children.
DevToolPage
Opens a page built by builder, under an app bar with name and actions. The page runs in the dashboard's own theme and navigator, never the app's.
DevToolSection
A titled group of entries on the dashboard's first screen. Sinew's built-in inspectors are the first section; the app's own sections follow, in the order given.
DevToolsLauncher
How the dashboard opens. Whichever is chosen, the dashboard, its theme and its navigator are the same, and recording, fault rules and the ribbon work the same.
DevToolsMenuItem
A ready menu row that opens the dashboard, for MenuLauncher: place it in a settings page or a drawer, behind DevToolsGate.enabled.
DevToolToggle
A switch shown inline: value is read when the row builds, onChanged called when it's flipped.
FloatingLauncher
A floating button, draggable, that opens the dashboard on tap; a drag never opens it. It starts at initialAlignment, and where it's dragged to is remembered in SinewDevTools' preferences.
No floating button: the app places DevToolsMenuItem where it wants, in a settings page or a drawer.
SinewDevTools
The developer tools around the app: wraps child with the launcher, the dashboard and the ribbon. Put it in main, behind DevToolsGate.enabled, so production builds tree-shake it away. Where the gate is off, it builds only child anyway:

Constants

devToolsMarker → const String
A string only builds with devtools contain. SinewDevTools references it, so CI searches a production build's compiled output for it: if it's there, devtools code survived tree-shaking, and the build fails.