Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.13 KB

File metadata and controls

46 lines (28 loc) · 1.13 KB

flutter_stetho

Flutter stetho by Tarun Khatri (Null Safe support added)

Getting Started

How can you too get this plugin up and running in your own app? Follow these steps.

Install the plugin

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

Install StethoHttpOverrides

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());
}

Run your app on an Android Device

flutter run

Open Brave

Pop open Brave browser, navigate to brave://inspect

You should now see your App appear in the window.