请求重写修复名称为空

This commit is contained in:
wanghongenpin
2023-12-03 20:39:55 +08:00
parent 7c15e97829
commit ec302db5d7
4 changed files with 9 additions and 4 deletions

View File

@@ -142,7 +142,9 @@ class _DesktopHomePagePageState extends State<DesktopHomePage> implements EventL
'3. 修复脚本导入中文乱码;\n'
'4. 手机端外部代理配置是否展示抓包;\n'
'5. 桌面端请求重写新窗口打开;\n'
'6. 请求重写升级支持请求行、header、状态码重写',
'6. 请求重写升级支持请求行、header、状态码重写'
'7. 展示请求/响应报文大小;'
,
style: TextStyle(fontSize: 14)));
});
}

View File

@@ -203,7 +203,7 @@ class _RequestRuleListState extends State<RequestRuleList> {
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(

View File

@@ -124,7 +124,10 @@ class MobileHomeState extends State<MobileHomePage> 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();

View File

@@ -153,7 +153,7 @@ class _RequestRuleListState extends State<RequestRuleList> {
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,