01 2024 档案

摘要:在开发中我们需要去计算文本的高度,从来去设置控件的高度,在flutter中我们可以使用TextPainter来计算文本高度 //获取文字高度 text:文字内容 fontSize:字体大小 fontWeight:字重 height:行高 maxWidth:最大宽度,maxLines:最大行数 sta 阅读全文
posted @ 2024-01-17 17:07 hczhhm 阅读(1071) 评论(5) 推荐(0)
摘要:Flutter 项目运行到ios模拟器报错: Error (Xcode): SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefaul 阅读全文
posted @ 2024-01-12 14:42 hczhhm 阅读(581) 评论(0) 推荐(0)
摘要:flutter开发中遇到需求需要Row嵌套TextField,运行后发现代码报错: child: Row( children: [ TextField( decoration: InputDecoration( hintText: "名称" ), ) ], ), 错误码太多了,这里就不贴出来了。 c 阅读全文
posted @ 2024-01-05 16:26 hczhhm 阅读(177) 评论(0) 推荐(0)
摘要:1.打包vue项目上传到服务器目录 /home/dhwww 没有权限,可以先上传到当前用户目录下,再copy到dhwww文件夹 2.安装Nginx sudo apt-get install nginx 3.配置Nginx 3.1 查看Nginx目录: root@VM-4-11-ubuntu:/hom 阅读全文
posted @ 2024-01-03 14:40 hczhhm 阅读(56) 评论(0) 推荐(0)