flutter_exploded 0.1.2 copy "flutter_exploded: ^0.1.2" to clipboard
flutter_exploded: ^0.1.2 copied to clipboard

discontinuedreplaced by: explo

Display an exploded view of the render tree of a Flutter app.

pub.dev

⚠️ This package is experimental.

This package allows you to display an exploded view of the render tree of a Flutter app.

Getting Started #

You will need to have two Flutter apps running at the same time. One will display the exploded visualization, the other is the app you want to visualize.

Instrument your app #

The app you want to visualize must be instrumented. First add flutter_exploded as a dependency:

dependencies:
  flutter_exploded: ...

Then capture the render tree of the app's widget tree that you want to visualize:

import 'package:flutter_exploded/flutter_exploded.dart';

CaptureRenderTree(
    child: MyInterestingAppComponent(),
);

Viewer app #

Again, add flutter_exploded as a dependency:

dependencies:
  flutter_exploded: ...

Then display the FlutterExplodedPage somewhere:

import 'package:flutter/material.dart';
import 'package:flutter_exploded/flutter_exploded.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: FlutterExplodedPage(),
    );
  }
}

When you open this page, you will be asked to enter the VM service URL of the app you want to visualize. This URL is logged early on when an app is launched.

5
likes
120
points
25
downloads

Documentation

API reference

Publisher

verified publishergabriel.terwesten.net

Weekly Downloads

Display an exploded view of the render tree of a Flutter app.

License

MIT (license)

Dependencies

collection, flutter, stream_channel, vector_math, vm_service, web_socket_channel

More

Packages that depend on flutter_exploded