当前位置:网站首页>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: '',
),
),
),
边栏推荐
- 11 在 operator= 中处理“自我赋值”
- MySQL速学-2021-09-01
- 异常的概念与处理
- Phase 4: one of College Students' vocational skills preparation in advance
- 剑指Offer(二十):包含min函数的栈
- 13 以对象管理资源
- Application of.Net open source framework in industrial production
- MLX90640 红外热成像仪测温传感器模块开发笔记(六)红外图像伪彩色编码
- [leetcode daily question 2021/2/14]765. Lovers hold hands
- 少了个分号
猜你喜欢

抽象工厂及其改进示例
![[leetcode daily question 2021/4/23]368. Maximum divisible subset](/img/0b/32ca862963c842a93f79eaac94fb98.png)
[leetcode daily question 2021/4/23]368. Maximum divisible subset

【论文下饭】Deep Mining External Imperfect Data for ChestX-ray Disease Screening

第8期:云原生—— 大学生职场小白该如何学

Zongzi battle - guess who can win

Okaleido ecological core equity Oka, all in fusion mining mode

记给esp8266烧录刷固件

Introduction to data analysis | kaggle Titanic mission

RT-Thread 学习笔记(三)---用SCons 构建编译环境

Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
随机推荐
MD5加密
Introduction to data analysis | kaggle Titanic mission (I) - > data loading and preliminary observation
Error[Pe147]: declaration is incompatible with '错误问题
(转载)ArcGIS Engine中各种点的创建方法
[notes on machine learning] [building a cyclic neural network and its application] deeplearning ai course5 1st week programming(keras)
[leetcode daily question 2021/8/30]528. Choose randomly by weight [medium]
Issue 8: cloud native -- how should college students learn in the workplace
[转]ArcGIS中判断两个Geometry之间的关系
关于硕博士开题报告编写的思考
C语言计算日期间隔天数
Oracle创建索引
.NET操作Redis List列表
.net operation redis sorted set ordered set
从蚂蚁的觅食过程看团队研发(转载)
Asynctask < T> decoration and await are not used in synchronous methods to obtain asynchronous return values (asynchronous methods are called in synchronous methods)
数据库函数
粽子大战 —— 猜猜谁能赢
Tradingview tutorial
抽象工厂及其改进示例
第4期:大学生提前职业技能准备之一