Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

UME is an in-app debug kits platform for Flutter.https://pub.dev/packages/ume

License

NotificationsYou must be signed in to change notification settings

ume-community/ume

 
 

Repository files navigation

简体中文

[Community Version] UME is an in-app debug kits platform for Flutter apps.

platformslicense

pub packagepub packagepub packagepub packagepub package

Since^1.0.0, ume starts adapting to the Flutter 3. See [Quick Start] to learn more.

Scan QR code or click link to download apk. Try it now!https://github.com/ume-community/ume/releases

There are 13 plugin kits built in the latest open source version of UME.Developer could create custom plugin kits, and integrate them into UME.VisitDevelop plugin kits for UME for more details.

Please seePlugins from community to make your ume stronger.

Quick Start

All packages whose names are prefixed withume_kit_ are functionplug-ins of UME, and users can access them according to demand

  1. Editpubspec.yaml, and add dependencies.

    Compatible with Flutter 3 since version1.0.0.

    dev_dependencies:ume:^2.0.0
  2. Runflutter pub get

  3. Import packages

    import'package:ume/ume.dart';// UME framework
  4. Edit main method of your app, register plugin kits and initial UME

    voidmain() {if (kDebugMode) {PluginManager.instance// Channel monitor     ..register(ChannelMonitor())// Channel observer     ..register(ChannelObserver())// Clean local data     ..register(DataCleanPanel())// Console     ..register(Console())// Database     ..register(DatabasePanel(databases: []))// Designer check     ..register(DesignerCheck())// Device     ..register(CpuInfoPage())     ..register(DeviceInfoPanel())// Dio     ..register(DioInspector(dio: dio))// GetConnect     ..register(GetConnectInspector(connect: get_connect))// Memory detector     ..register(MemoryDetectorButton())// ..register(const DBViewer())// Monitor     ..register(MonitorPlugin())     ..register(constMonitorActionsPlugin())// Perf     ..register(Performance())     ..register(MemoryInfoPage())// SharedPreferences     ..register(SharedPreferencesInspector())// Show code     ..register(ShowCode())// Slow animation     ..register(SlowAnimation())// UI inspector     ..register(WidgetInfoInspector())     ..register(WidgetDetailInspector())     ..register(ColorSucker())     ..register(AlignRuler())     ..register(ColorPicker())     ..register(TouchIndicator())// Custom router     ..register(CustomRouterPluggable());runApp(UMEWidget(child:MyApp(), enable:true));  }else {runApp(MyApp());  }}
  5. flutter run for runningorflutter build apk --debugflutter 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.AfterPull Request #80900 merging,--disable-dds was renamed to--no-dds.

IMPORTANT

From0.1.1/0.2.1 version,we don't need setuseRootNavigator: false.The following section only applies to versions before version0.1.1/0.2.1 .

Since UME manages the routing stack at the top level, methods such asshowDialog userootNavigator to pop up by default,thereforemust pass in the parameteruseRootNavigator: false inshowDialog,showGeneralDialog and other 'show dialog' methods to avoid navigator errors.

showDialog(  context: context,  builder: (ctx)=>AlertDialog(        title:constText('Dialog'),        actions:<Widget>[TextButton(              onPressed: ()=>Navigator.pop(context),              child:constText('OK'))        ],      ),  useRootNavigator:false);// <===== It's very IMPORTANT!

Features

There are 13 plugin kits built in the current open source version of UME.

UI kits

Widget Info
Widget Info
Widget Detail
Widget Detail
Align Ruler
Align Ruler
Color Picker
Color Picker
Color Sucker
Color Sucker
Touch Indicator
Touch Indicator

Performance Kits

Memory Info
Memory Info
Perf Overlay
Perf Overlay

Device Info Kits

CPU Info
CPU Info
Device Info
Device Info

Show Code

Show Code
Show Code

Console

Console
Console

Dio Inspector

Dio Inspector
Dio Inspector

How to use UME in Release/Profile mode

Once you use ume in Release/Profile mode, you agree that you willbear the relevant risks by yourself.

The maintainer of ume does not assume any responsibility for the accidentcaused by this.

We recommend not to use it in Release/Profile mode for the following reasons:

  1. VM Service is not available in these environments, so some functions are not available
  2. In this environment, developers need to isolate the app distribution channels by themselves to avoid submitting relevant debugging code to the production environment

In order to use in Release/Profile mode, the details that need to be adjusted in the normal access process:

  1. Inpubspec.yaml,ume and plugins should be write belowdependencies rather thandev_dependencies.
  2. Don't put the code which callPluginManager.instance.register() andUMEWidget(child: App()) into conditionals which represent debug mode. (Such askDebugMode)
  3. Ensure the above details, runflutter clean andflutter pub get, then build your app.

About version

Compatibility

UME version1.12.131.22.32.0.12.2.32.5.32.8.03.0.53.3.1
0.1.x⚠️⚠️
0.2.x⚠️
0.3.x
1.0.x⚠️⚠️⚠️⚠️
1.1.x⚠️⚠️⚠️⚠️

⚠️ means the version has not been fully tested for compatibility.

Special case

  • Please useume_kit_ui: ^1.1.0 and above version when you are using Flutter 3.7 and above.

Coverage

Packagemasterdevelopdevelop_nullsafety
umeCoverageCoverageCoverage
ume_kit_deviceCoverageCoverageCoverage
ume_kit_perfCoverageCoverageCoverage
ume_kit_show_codeCoverageCoverageCoverage
ume_kit_uiCoverageCoverageCoverage
ume_kit_consoleCoverageCoverageCoverage
ume_kit_dioCoverageN/ACoverage

Version upgrade rules

Please refer toSemantic versions for details.

Change log

Changelog

Contributing

Contributing rules:Contributing

Contributors

Thanks to the following contributors (names not listed in order):

ShirelyCShirelyC
lpylpyleolpylpyleo
Alex LiAlex Li
SwainSwain
mengdouermengdouer
LAIIIHZLAIIIHZ
XinLeiXinLei
sulisuli
wei-springwei-spring

Plugins from community

About the third-party open-source project dependencies

  • The TouchIndicator use the pubtouch_indicator, the ColorPicker use the pubcyclop.
  • Wefork the packagecyclop and modify some code meet our functional needs. We should depend cyclop by pub version after thePR being merged.

LICENSE

This project is licensed under the MIT License - visit theLICENSE for details.

Contact the author

Maybe...

  • Found a bug in the code, or an error in the documentation
  • Produces an exception when you use the UME
  • UME is not compatible with the new version Flutter
  • Have a good idea or suggestion

You cansubmit an issue in any of the above situations.

Maybe...

  • Communicate with the author
  • Communicate with more community developers
  • Cooperate with UME

Welcome toJoin the ByteDance Flutter Exchange Group.

Or contactauthor.

Releases

No releases published

Packages

No packages published

Languages

  • Dart32.9%
  • C++31.7%
  • CMake24.6%
  • Swift3.8%
  • Ruby3.5%
  • C1.8%
  • Other1.7%

[8]ページ先頭

©2009-2025 Movatter.jp