From 2a28a389f8707eb63578298fc55146921ac40fe8 Mon Sep 17 00:00:00 2001 From: downtail <916382412@qq.com> Date: Fri, 12 Sep 2025 11:03:17 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E6=9C=AC=E5=9C=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?assets=E6=96=87=E4=BB=B6=E5=A4=B9=EF=BC=8CLogWidget=E4=BF=AE?= =?UTF-8?q?=E6=94=B9Appbar=20title=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/.gitkeep | 0 lib/page/log_widget.dart | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 assets/.gitkeep diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lib/page/log_widget.dart b/lib/page/log_widget.dart index 02a3310..8aa1379 100644 --- a/lib/page/log_widget.dart +++ b/lib/page/log_widget.dart @@ -42,7 +42,10 @@ class _LogWidgetState extends State appBar: AppBar( title: Text( widget.netOptions.reqOptions!.url!, - style: TextStyle(fontSize: 11), + style: TextStyle( + color: Colors.black, + fontSize: 11, + ), ), backgroundColor: theme.scaffoldBackgroundColor, elevation: 1.0, From ee41d7b83c6f2d2579e075c8dfdfc56c10876202 Mon Sep 17 00:00:00 2001 From: downtail <916382412@qq.com> Date: Fri, 12 Sep 2025 11:12:50 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E7=A6=81=E6=AD=A2=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=89=93=E5=BC=80HttpLogListWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/overlay_draggable_button.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/overlay_draggable_button.dart b/lib/overlay_draggable_button.dart index 81a744d..ed4a4d1 100644 --- a/lib/overlay_draggable_button.dart +++ b/lib/overlay_draggable_button.dart @@ -10,6 +10,10 @@ OverlayEntry? itemEntry; ///显示全局悬浮调试按钮 showDebugBtn(BuildContext context, {Widget? button, Color? btnColor}) async { + bool hasShowed = debugBtnIsShow(); + if (hasShowed) { + return; + } ///widget第一次渲染完成 try { await Future.delayed(Duration(milliseconds: 500)); From 23aa32daa868900c9fb6e5fb5e39935ef1103b20 Mon Sep 17 00:00:00 2001 From: downtail <916382412@qq.com> Date: Fri, 12 Sep 2025 11:22:42 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E5=88=A4=E6=96=AD=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/overlay_draggable_button.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/overlay_draggable_button.dart b/lib/overlay_draggable_button.dart index ed4a4d1..81a744d 100644 --- a/lib/overlay_draggable_button.dart +++ b/lib/overlay_draggable_button.dart @@ -10,10 +10,6 @@ OverlayEntry? itemEntry; ///显示全局悬浮调试按钮 showDebugBtn(BuildContext context, {Widget? button, Color? btnColor}) async { - bool hasShowed = debugBtnIsShow(); - if (hasShowed) { - return; - } ///widget第一次渲染完成 try { await Future.delayed(Duration(milliseconds: 500)); From db3aa5fc2129f1f745ff619372fcb77158fcb8ea Mon Sep 17 00:00:00 2001 From: 0xfe10 <0xfe10@proton.me> Date: Mon, 26 Jan 2026 14:31:26 +0000 Subject: [PATCH 4/4] chore: Update dependencies to latest versions --- .../plugins/GeneratedPluginRegistrant.java | 24 ++++++-------- android/local.properties | 2 ++ ios/Flutter/ephemeral/flutter_lldb_helper.py | 32 +++++++++++++++++++ ios/Flutter/ephemeral/flutter_lldbinit | 5 +++ 4 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 android/local.properties create mode 100644 ios/Flutter/ephemeral/flutter_lldb_helper.py create mode 100644 ios/Flutter/ephemeral/flutter_lldbinit diff --git a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java b/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java index d007606..539ab02 100644 --- a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java +++ b/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java @@ -1,23 +1,19 @@ package io.flutter.plugins; -import io.flutter.plugin.common.PluginRegistry; +import androidx.annotation.Keep; +import androidx.annotation.NonNull; +import io.flutter.Log; + +import io.flutter.embedding.engine.FlutterEngine; /** * Generated file. Do not edit. + * This file is generated by the Flutter tool based on the + * plugins that support the Android platform. */ +@Keep public final class GeneratedPluginRegistrant { - public static void registerWith(PluginRegistry registry) { - if (alreadyRegisteredWith(registry)) { - return; - } - } - - private static boolean alreadyRegisteredWith(PluginRegistry registry) { - final String key = GeneratedPluginRegistrant.class.getCanonicalName(); - if (registry.hasPlugin(key)) { - return true; - } - registry.registrarFor(key); - return false; + private static final String TAG = "GeneratedPluginRegistrant"; + public static void registerWith(@NonNull FlutterEngine flutterEngine) { } } diff --git a/android/local.properties b/android/local.properties new file mode 100644 index 0000000..a9f0f23 --- /dev/null +++ b/android/local.properties @@ -0,0 +1,2 @@ +sdk.dir=/home/linuxbrew/.linuxbrew/share/android-commandlinetools +flutter.sdk=/root/fvm/versions/3.38.7 \ No newline at end of file diff --git a/ios/Flutter/ephemeral/flutter_lldb_helper.py b/ios/Flutter/ephemeral/flutter_lldb_helper.py new file mode 100644 index 0000000..a88caf9 --- /dev/null +++ b/ios/Flutter/ephemeral/flutter_lldb_helper.py @@ -0,0 +1,32 @@ +# +# Generated file, do not edit. +# + +import lldb + +def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict): + """Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages.""" + base = frame.register["x0"].GetValueAsAddress() + page_len = frame.register["x1"].GetValueAsUnsigned() + + # Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the + # first page to see if handled it correctly. This makes diagnosing + # misconfiguration (e.g. missing breakpoint) easier. + data = bytearray(page_len) + data[0:8] = b'IHELPED!' + + error = lldb.SBError() + frame.GetThread().GetProcess().WriteMemory(base, data, error) + if not error.Success(): + print(f'Failed to write into {base}[+{page_len}]', error) + return + +def __lldb_init_module(debugger: lldb.SBDebugger, _): + target = debugger.GetDummyTarget() + # Caveat: must use BreakpointCreateByRegEx here and not + # BreakpointCreateByName. For some reasons callback function does not + # get carried over from dummy target for the later. + bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$") + bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__)) + bp.SetAutoContinue(True) + print("-- LLDB integration loaded --") diff --git a/ios/Flutter/ephemeral/flutter_lldbinit b/ios/Flutter/ephemeral/flutter_lldbinit new file mode 100644 index 0000000..e3ba6fb --- /dev/null +++ b/ios/Flutter/ephemeral/flutter_lldbinit @@ -0,0 +1,5 @@ +# +# Generated file, do not edit. +# + +command script import --relative-to-command-file flutter_lldb_helper.py