当前位置:网站首页>Flutter TextField怎样去除下划线及有焦点时颜色
Flutter TextField怎样去除下划线及有焦点时颜色
2022-07-26 10:39:00 【Flutter萌新学院】
修改方法
只有把
enabledBorder: new UnderlineInputBorder
focusedBorder: new UnderlineInputBorder
设置为 borderSide: BorderSide.none, 即可,修改焦点时颜色都可以在这里定义
Container(
padding: EdgeInsets.only(left: 18.0, right: 18.0),
height: 150.0,
child: new TextField(
controller: _mnemonicController,
keyboardType: TextInputType.text,
maxLength: 150,
onChanged: (value) {
setState(() {
});
},
autofocus: false,
decoration: InputDecoration(
enabledBorder: new UnderlineInputBorder( //没有焦点时
borderSide: BorderSide.none,
),
focusedBorder: new UnderlineInputBorder( //有焦点时
borderSide: BorderSide.none,
),
contentPadding:
EdgeInsets.symmetric(vertical: 10, horizontal: 10),
hintText:
S.of(context).string_wallet_enter_receive_amount,
counterText: '',
),
),
),
边栏推荐
猜你喜欢

.NET5WTM(ASP.NET Core) PGSql开箱操作

Oracle cannot start tnslistener service cannot start

文案秘籍七步曲至----文献团队协作管理

Application of.Net open source framework in industrial production

工厂模式详解
![[leetcode每日一题2021/8/31]1109. 航班预订统计【中等】差分数组](/img/9d/5ce5d4144a9edc3891147290e360d8.png)
[leetcode每日一题2021/8/31]1109. 航班预订统计【中等】差分数组

Dry goods likeshop takeout order system is open source, 100% open source, no encryption

sigmod 函数与softmax 函数对比
![[leetcode每日一题2021/2/14]765. 情侣牵手](/img/be/8639a05c733638bf0b3fdeb11abccf.png)
[leetcode每日一题2021/2/14]765. 情侣牵手
![[leetcode每日一题2021/4/29]403. 青蛙过河](/img/fb/612777c77df5a611506e72f4f4c3c8.png)
[leetcode每日一题2021/4/29]403. 青蛙过河
随机推荐
分布式锁解决方案之Redis实现
Some web APIs you don't know
.NET 开源框架在工业生产中的应用
RT-Thread 学习笔记(七)---开启基于SPI Flash的elmfat文件系统(中)
剑指Offer(四十四):翻转单词顺序序列
Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
Inheritance method of simplified constructor (II) - class inheritance in ES6
记给esp8266烧录刷固件
.net5wtm (asp.net core) PgSQL unpacking operation
C语言计算日期间隔天数
工厂模式详解
20210807#1 C语言程序结构
粽子大战 —— 猜猜谁能赢
Redis特殊数据类型使用场景
控制随机抽中几率 [ C# | Random ]
QRcode二维码(C语言)遇到的问题
Asynctask < T> decoration and await are not used in synchronous methods to obtain asynchronous return values (asynchronous methods are called in synchronous methods)
解决:无法加载文件 C:\Users\user\AppData\Roaming\npm\npx.ps1,因为在此系统上禁止运行脚本 。
[leetcode daily question 2021/2/13]448. Find all the missing numbers in the array
RT-Thread 学习笔记(六)--- 开启基于SPI Flash的elmfat文件系统(上)