当前位置:网站首页>Flutter TextField设置高度并且自动换行,圆角边框去除下划线
Flutter TextField设置高度并且自动换行,圆角边框去除下划线
2022-07-26 10:39:00 【Flutter萌新学院】
核心代码
child: new TextField(
controller: _mnemonicController,
keyboardType: TextInputType.multiline,
maxLines: 10,
minLines: 1,
Container(
margin: EdgeInsets.only(left: 18.0, right: 18.0, top: 15),
height: 150,
width: MediaQuery.of(context).size.width,
decoration: new BoxDecoration(
border: new Border.all(
color: ColorsBase.color_gray_broder, width: 0.5),
borderRadius: new BorderRadius.circular((10.0))),
child: new TextField(
controller: _mnemonicController,
keyboardType: TextInputType.multiline,
maxLines: 10,
minLines: 1,
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_mnemonic,
hintStyle: TextStyle(fontSize: 13,color: ColorsBase.text_gray),
counterText: '',
),
),
),
边栏推荐
- IAR sprintf 浮点 在UCOS 总格式化成0.0的问题
- 使用Geoprocessor 工具
- Redis特殊数据类型使用场景
- Issue 5: the second essential skill for College Students
- 剑指Offer(八):跳台阶
- SAP ABAP 守护进程的实现方式
- RT-Thread 学习笔记(一)---配置RT-Thread开发环境
- 在altium designer中禁用USBJATG
- 【机器学习小记】【搭建循环神经网络及其应用】deeplearning.ai course5 1st week programming(keras)
- Dry goods likeshop takeout order system is open source, 100% open source, no encryption
猜你喜欢

Introduction to data analysis | kaggle Titanic mission (I) - > data loading and preliminary observation
![[leetcode每日一题2021/2/18]【详解】995. K 连续位的最小翻转次数](/img/de/62fca587cde95110c2a967ca93eea5.png)
[leetcode每日一题2021/2/18]【详解】995. K 连续位的最小翻转次数

The problem of large fluctuation of hx711 data
![[leetcode daily question 2021/2/14]765. Lovers hold hands](/img/be/8639a05c733638bf0b3fdeb11abccf.png)
[leetcode daily question 2021/2/14]765. Lovers hold hands

粽子大战 —— 猜猜谁能赢
控制随机抽中几率 [ C# | Random ]

Oracle cannot start tnslistener service cannot start

IAR sprintf 浮点 在UCOS 总格式化成0.0的问题

Anaconda is used on vscode (the environment has been configured)

Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
随机推荐
.NET操作Redis String字符串
.NET5WTM(ASP.NET Core) PGSql开箱操作
在神州IV开发板上成功移植STemWin V5.22
.net operation redis string string
[machine learning notes] [style transfer] deeplearning ai course4 4th week programming(tensorflow2)
2021-08-13和鹏哥学C语言-数组
SuperMap IClient for Leaflet 加载高斯克吕格投影三度分带CGCS2000大地坐标系WMTS服务
[leetcode每日一题2021/2/14]765. 情侣牵手
RT-Thread 学习笔记(六)--- 开启基于SPI Flash的elmfat文件系统(上)
Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
(转载)ArcGIS Engine中各种点的创建方法
父类对子类的引用(父类引用指向子类对象)
【dectectron2】跟着官方demo一起做
剑指Offer(二十):包含min函数的栈
扫雷pro版2021-08-19
抽象工厂及其改进示例
[leetcode每日一题2021/4/23]368. 最大整除子集
第7期:内卷和躺平,你怎么选
sigmod 函数与softmax 函数对比
【机器学习小记】【搭建循环神经网络及其应用】deeplearning.ai course5 1st week programming(keras)