当前位置:网站首页>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: '',
),
),
),
边栏推荐
- L2-005 set similarity (intersection of vector and set)
- 在神州IV开发板上为STemWin 5.22加入触屏驱动
- Redis特殊数据类型使用场景
- Application of.Net open source framework in industrial production
- MD5加密
- 在altium designer中禁用USBJATG
- [leetcode daily question 2021/2/18] [detailed explanation] minimum number of turns of 995. K continuous bits
- 2021-08-13和鹏哥学C语言-数组
- 【论文下饭】Deep Mining External Imperfect Data for ChestX-ray Disease Screening
- Zongzi battle - guess who can win
猜你喜欢

Introduction to data analysis | kaggle Titanic mission

centos8(liunx)部署WTM(ASP.NET 5)使用pgsql

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

Phase 4: one of College Students' vocational skills preparation in advance
![[leetcode每日一题2021/4/23]368. 最大整除子集](/img/0b/32ca862963c842a93f79eaac94fb98.png)
[leetcode每日一题2021/4/23]368. 最大整除子集

记给esp8266烧录刷固件

Application of.Net open source framework in industrial production

.net5wtm (asp.net core) PgSQL unpacking operation

解决:无法加载文件 C:\Users\user\AppData\Roaming\npm\npx.ps1,因为在此系统上禁止运行脚本 。

Write to esp8266 burning brush firmware
随机推荐
centos8(liunx)部署WTM(ASP.NET 5)使用pgsql
Database functions
异常的概念与处理
剑指Offer(四十三):左旋转字符串
点击el-dropdown-item/@click.native
Datav beautiful data screen production experience
C语言鹏哥20210812C语言函数
.net operation redis string string
[leetcode每日一题2021/2/13]448. 找到所有数组中消失的数字
反射机制简述
SAP ABAP 守护进程的实现方式
扫雷pro版2021-08-19
【论文下饭】Deep Mining External Imperfect Data for ChestX-ray Disease Screening
[machine learning notes] [style transfer] deeplearning ai course4 4th week programming(tensorflow2)
C language callback function
Introduction to data analysis | kaggle Titanic mission (I) - > data loading and preliminary observation
在altium designer中禁用USBJATG
同步方法中不使用asyncTask<T> 修饰和await获取异步返回值(同步方法中调用异步方法)
【机器学习小记】【风格迁移】deeplearning.ai course4 4th week programming(tensorflow2)
[notes on machine learning] [building a cyclic neural network and its application] deeplearning ai course5 1st week programming(keras)