sinew_devtools_ui
The DevTools overlay, dashboard and inspector pages.
The in-app dashboard for sinew_devtools: a floating button that opens the Network Monitor, the Exception Log, the stores, fault injection, the API host and a changelog, in its own theme and back stack, never the app's.
Features
SinewDevToolswraps the app, andDevToolsMenuItemopens the dashboard from a settings screen- Network Monitor with Copy, Copy as cURL and Replay, and an Exception Log, both redacted
- Inspectors for the key-value and secure stores, with secrets masked and never copyable
- Your own sections:
DevToolSectionwithDevToolPage,DevToolGroup,DevToolToggleandDevToolActionentries, shown after Sinew's BuildRibbonfor a label such as1.4.0 (212) · staging, and three launchers:FloatingLauncher,MenuLauncherandCustomLauncher
Getting started
flutter pub add sinew_devtools_ui
Usage
void main() {
DevToolsGate.assertMatchesFlavor();
const app = App();
runApp(
DevToolsGate.enabled
? const SinewDevTools(ribbon: BuildRibbon('1.4.0 · staging'), child: app)
: app,
);
}
SinewDevTools and DevToolsMenuItem check DevToolsGate.enabled themselves, so a production build whose main forgot the gate still shows only the app.
Related packages
Sinew is one architecture for Flutter and Kotlin, released as a set of packages at one version.
Documentation
- Usage docs: sinew.srctool.com
- API reference: pub.dev/documentation/sinew_devtools_ui
- Source and issues: srctool/sinew-dart
- Design and decisions: the Guide
License
Apache 2.0, see LICENSE.
Libraries
- sinew_devtools_ui
- The DevTools overlay, dashboard and inspector pages.