From ec302db5d77b91bee2c34a04f2db296d82878e62 Mon Sep 17 00:00:00 2001 From: wanghongenpin Date: Sun, 3 Dec 2023 20:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E9=87=8D=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=90=8D=E7=A7=B0=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/desktop/desktop.dart | 4 +++- lib/ui/desktop/toolbar/setting/request_rewrite.dart | 2 +- lib/ui/mobile/mobile.dart | 5 ++++- lib/ui/mobile/setting/request_rewrite.dart | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/ui/desktop/desktop.dart b/lib/ui/desktop/desktop.dart index 24e2bab..ab98f9e 100644 --- a/lib/ui/desktop/desktop.dart +++ b/lib/ui/desktop/desktop.dart @@ -142,7 +142,9 @@ class _DesktopHomePagePageState extends State implements EventL '3. 修复脚本导入中文乱码;\n' '4. 手机端外部代理配置是否展示抓包;\n' '5. 桌面端请求重写新窗口打开;\n' - '6. 请求重写升级,支持请求行、header、状态码重写;', + '6. 请求重写升级,支持请求行、header、状态码重写;' + '7. 展示请求/响应报文大小;' + , style: TextStyle(fontSize: 14))); }); } diff --git a/lib/ui/desktop/toolbar/setting/request_rewrite.dart b/lib/ui/desktop/toolbar/setting/request_rewrite.dart index a873f86..3db0d40 100644 --- a/lib/ui/desktop/toolbar/setting/request_rewrite.dart +++ b/lib/ui/desktop/toolbar/setting/request_rewrite.dart @@ -203,7 +203,7 @@ class _RequestRuleListState extends State { padding: const EdgeInsets.all(5), child: Row( children: [ - SizedBox(width: 130, child: Text(list[index].name!, style: const TextStyle(fontSize: 13))), + SizedBox(width: 130, child: Text(list[index].name ?? '', style: const TextStyle(fontSize: 13))), SizedBox( width: 40, child: SwitchWidget( diff --git a/lib/ui/mobile/mobile.dart b/lib/ui/mobile/mobile.dart index 5db0dc6..8d72ff7 100644 --- a/lib/ui/mobile/mobile.dart +++ b/lib/ui/mobile/mobile.dart @@ -124,7 +124,10 @@ class MobileHomeState extends State implements EventListener { '3. 修复脚本导入中文乱码;\n' '4. 手机端外部代理配置是否展示抓包;\n' '5. 桌面端请求重写新窗口打开;\n' - '6. 请求重写升级,支持请求行、header、状态码重写;'; + '6. 请求重写升级,支持请求行、header、状态码重写;' + '7. 展示请求/响应报文大小' + + ; showAlertDialog('更新内容V1.0.5', content, () { widget.configuration.upgradeNoticeV5 = false; widget.configuration.flushConfig(); diff --git a/lib/ui/mobile/setting/request_rewrite.dart b/lib/ui/mobile/setting/request_rewrite.dart index 02ce0fe..d6b1048 100644 --- a/lib/ui/mobile/setting/request_rewrite.dart +++ b/lib/ui/mobile/setting/request_rewrite.dart @@ -153,7 +153,7 @@ class _RequestRuleListState extends State { children: [ SizedBox( width: 80, - child: Text(list[index].name!, + child: Text(list[index].name ?? "", overflow: TextOverflow.ellipsis, style: const TextStyle(fontSize: 13))), SizedBox( width: 20,