koin_devtools 0.2.2 koin_devtools: ^0.2.2 copied to clipboard
DevTools to inspect the state of Koin.dart scope instances.
koin_devtools #
A DevTools to Koin.dart. #
Koin DevTools allows you to inspect the internal state of the objects created by the providers(definitions).
Demo #
Usage #
Just insert the KoinDevTools Widget somewhere in your application or use showDevTools.
class Page extends StatefulWidget {
@override
_PageState createState() => _PageState();
}
class _PageState extends State<Page> {
@override
Widget build(BuildContext context) {
return Scaffold(
/// Just insert the KoinDevTools
endDrawer: KoinDevTools(),
body: IconButton(icon: Text('DevTools'), onPressed: () {
// Or use this
showDevTools(context);
},),
);
}
}