当前位置:网站首页>Flutter TextField示例
Flutter TextField示例
2022-07-04 20:35:00 【海阔天空6688】
带边框效果
TextField(
controller: _passWordController,
autofocus: true,
obscureText: true,
maxLength: 20,
decoration: InputDecoration(
contentPadding: const EdgeInsets.all( 10),
label: const Text(Strings.password),
hintText: Strings.inputPassword,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),//圆角
borderSide: BorderSide.merge( //边框宽度
const BorderSide(width: 1, color: Colors.grey),
const BorderSide(width: 1, color: Colors.grey),
),
),
),
)
不带边框效果
TextField(
controller: _userNameController,
autofocus: true,
decoration: InputDecoration(
prefixIcon: const Icon(Icons.account_circle_outlined
边栏推荐
- Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
- WGCNA分析基本教程总结
- redis事务
- MP3是如何诞生的?
- Jerry's ad series MIDI function description [chapter]
- TCP三次握手,四次挥手,你真的了解吗?
- Delphi SOAP WebService 服务器端多个 SoapDataModule 实现相同的接口方法,接口继承
- heatmap.js图片热点热力图插件
- Gobang go to work fishing tools can be LAN / man-machine
- Kubeadm初始化报错:[ERROR CRI]: container runtime is not running
猜你喜欢
华为ensp模拟器 实现多个路由器的设备可以相互访问
创客思维在高等教育中的启迪作用
Detailed explanation of multi-mode input event distribution mechanism
Daily question-leetcode556-next larger element iii-string-double pointer-next_ permutation
福昕PDF编辑器v10.1.8绿色版
js 3D爆炸碎片图片切换js特效
torch. Tensor and torch The difference between tensor
Explication détaillée du mécanisme de distribution des événements d'entrée multimodes
Word文档中标题前面的黑点如何去掉
搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
随机推荐
【Try to Hack】宽字节注入
IIC (STM32)
2021 CCPC Harbin B. magical subsequence (thinking question)
[micro service SCG] use of predict
【C語言】符號的深度理解
NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
nmap扫描
redis事务
TCP三次握手,四次挥手,你真的了解吗?
numpy vstack 和 column_stack
[wechat applet] collaborative work and release
Redis pipeline
torch.tensor和torch.Tensor的区别
Roast B station charges, is it because it has no money?
Y56. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (29)
改善机器视觉系统的方法
Embedded TC test case
redis RDB AOF
【活动早知道】LiveVideoStack近期活动一览