koin_devtools 0.2.2 copy "koin_devtools: ^0.2.2" to clipboard
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 #

alt-text

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);
      },),
    );
  }
}
3
likes
20
pub points
36%
popularity

Publisher

unverified uploader

DevTools to inspect the state of Koin.dart scope instances.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

expandable, flutter, koin, koin_flutter, kt_dart

More

Packages that depend on koin_devtools