flutter_ume
UME is an in-app debug kits platform for Flutter. Produced by Flutter Infra team of ByteDance
UME is an in-app debug kits platform for Flutter apps.
There are 10 plugin kits built in the current open source version of UME.
Developer could create custom plugin kits, and integrate them into UME.
Visit Develop plugin kits for UME for more details.
Quick Start
-
Edit
pubspec.yaml
, and add dependencies. -
Run
flutter pub get
-
Import packages
-
Edit main method of your app, register plugin kits and initial UME
-
flutter run
for running
orflutter build apk --debug
、flutter build ios --debug
for building productions.
Some functions rely on VM Service, and additional parameters need to be added for local operation to ensure that it can connect to the VM Service.
Flutter 2.0.x, 2.2.x and other versions run on real devices,
flutter run
needs to add the--disable-dds
parameter.
After Pull Request #80900 merging,--disable-dds
was renamed to--no-dds
.
IMPORTANT
Since UME manages the routing stack at the top level, methods such as showDialog
use rootNavigator
to pop up by default,
therefore must pass in the parameter useRootNavigator: false
in showDialog
, showGeneralDialog
and other 'show dialog' methods to avoid navigator errors.
Features
There are 10 plugin kits built in the current open source version of UME.
![]() Widget Info |
![]() Widget Detail |
![]() Color Sucker |
![]() Align Ruler |
![]() Perf Overlay |
![]() Show Code |
![]() Console |
![]() Memory Info |
![]() CPU Info |
![]() Device Info |
Develop plugin kits for UME
You can refer to the example in
./custom_plugin_example
about this chapter.
-
Run
flutter create -t package custom_plugin
to create your custom plugin kit, it could bepackage
orplugin
. -
Edit
pubspec.yaml
of the custom plugin kit to add UME framework dependency. -
Create the class of the plugin kit which should implement
Pluggable
. -
Use your custom plugin kit in project
-
Edit
pubspec.yaml
of host app project to addcustom_plugin
dependency. -
Run
flutter pub get
-
Import package
-
-
Edit main method of your app, register your custom_plugin plugin kit
-
Run your app