飘动-添加边框
最编程
2024-07-09 18:21:13
...
Flutter-添加边框
Container(
height: 34,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(17),///圆角
border: Border.all(color: colorE6E6E6,width: 1)///边框颜色、宽
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
SizedBox(width: 10,),
Image.asset("images/message-top-search.png",width: 17,height: 17,),
SizedBox(width: 10,),
Expanded(
child: TextField(
style: TextStyle(
fontSize: 13,
color: color333333
),///输入时文字样式
cursorColor: themeColor,///光标颜色
maxLines: 1,
decoration: InputDecoration(
labelText: '搜索您想咨询的问题',///默认文字
border: InputBorder.none,///去掉下划线
hintStyle: TextStyle(
color: color999999
),///默认文字样式
),
),
),
],
),
)
©著作权归作者所有,转载或内容合作请联系作者
推荐阅读
-
在 Ubuntu 下安装和初始化 Git,同时添加 SSH 密钥
-
Android TextureView 实现 Camera 相机预览、拍照--首次为 AndroidManifest 添加相机权限
-
在双向链表中实现添加、删除和校验
-
MySQL 添加/删除改进步骤
-
群晖在前面添加了雷池社区版,安装失败后,就无法识别用户的真实访问 IP。
-
在 Nginx 安装中添加 nginx-module-vts 模块。
-
群晖在前面添加了雷池社区版,安装失败后,就无法识别用户的真实访问 IP。
-
[日志] Power Buckle Brush-Up - 买入和卖出股票的最佳时机 // Unity - 添加数据表文件、EPPlus 插件和生成 Excel 到 Json 代码文件的编辑器开发回顾
-
如何在 ASP.NET Core 6/NET 8.0 中添加 Startup.cs
-
Android 13 添加运行时权限