flutter_ume
1.1.2, released 4 years ago by opensource.bytedance.com
An in-app debug kits platform for Flutter apps produced by the ByteDance Flutter Infra team.
What it does
Provides an in-app debugging platform with 13 built-in plugin kits (such as UI inspectors, performance monitors, device info, console, and Dio network inspection). Allows developers to create custom plugin kits and integrate them into UME.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need in-app debugging tools and visual inspectors for your Flutter application.
- You want to inspect UI layouts, performance, memory, device information, and network requests directly inside the running app.
Skip it when
- You are running your app in release mode (where VM service and some debugging features are unavailable or discouraged).
- You do not want any third-party debug overlays included in your application builds.
Strengths
- Comprehensive built-in plugins for UI, performance, device info, console output, and network logging.
- Extensible architecture allowing the creation of custom debug plugin kits.
- Compatible with Flutter 3 and null-safety.
Weaknesses
- Some functions rely on VM Service and require specific run parameters like --no-dds.
- Not recommended for use in release or profile modes due to potential risks and lack of VM Service.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add dependencies to pubspec.yaml, initialize PluginManager and wrap your app with UMEWidget in debug mode.
void main() {
if (kDebugMode) {
PluginManager.instance
..register(WidgetInfoInspector())
..register(Performance());
runApp(UMEWidget(child: MyApp(), enable: true));
} else {
runApp(MyApp());
}
}Alternatives
Packages that do the same job and could replace flutter_ume.
Works with
Packages commonly used together with flutter_ume: ones it builds on, ones built on it, and its own family.
- vm_serviceflutter_ume depends on itA library to communicate with a service implementing the Dart VM service protocol.
- shared_preferencesflutter_ume depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- tupleflutter_ume depends on itProvides immutable tuple classes for grouping values.