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,