Skip to content

Integrate Flutter with the Facebook Stetho tool for Android

License

Notifications You must be signed in to change notification settings

tarunkhatri/flutter_stetho

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Integrate Flutter with the Facebook Stetho tool for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 56.5%
  • Java 39.0%
  • Ruby 2.3%
  • Objective-C 2.2%