Flutter stetho by Tarun Khatri (Null Safe support added)
How can you too get this plugin up and running in your own app? Follow these steps.
Add flutter_stetho
to your dependencies in the pubspec.yaml
file
dev_dependencies:
flutter_stetho:
git:
url: git://github.com/tarunkhatri/flutter_stetho.git
ref: master
Next, you'll need to install the Stetho.initialize()
in the main() function of your app. This will enable Stetho and allow flutter_stetho
to wrap all http calls and report information to the Chrome Dev Tools via the Stetho package from Facebook.
Note: It's probably a good idea only put this override in a main_dev.dart
file.
import 'package:flutter_stetho/flutter_stetho.dart';
void main() {
Stetho.initialize();
runApp(new MyApp());
}
flutter run
Pop open Brave browser, navigate to brave://inspect
You should now see your App appear in the window.