当前位置:网站首页>Flutter textfield sets the height and automatically wraps lines, and the rounded border removes the underline
Flutter textfield sets the height and automatically wraps lines, and the rounded border removes the underline
2022-07-26 12:55:00 【Flutter Mengxin College】
Core code
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: '',
),
),
),
边栏推荐
- Does Flink CDC only support SQL client to submit SQL scripts
- Redis realizes single sign on -- system framework construction (I)
- Panorama of volcanic engine cloud growth plan: 30 + plans come out together, and military development advantage areas
- Backtracking - 46. Full arrangement
- 论文阅读-MLPD:Multi-Label Pedestrian Detector in Multispectral Domain(海康威视研究院实习项目)
- Kuzaobao: summary of Web3 encryption industry news on July 25
- Problems encountered in byte stream exercises and Solutions
- 手机上买股票,在哪里开户比较安全?
- Detailed interpretation of hole convolution (input and output size analysis)
- 数据库组成存储过程和函数
猜你喜欢

Overseas app push (Part 2): Channel Integration Guide for overseas manufacturers

Huawei ultra fusion fusioncube solution notes

Food safety | are sterile eggs really completely sterile?

Detailed explanation of Legendre transformation and conjugate function

一款超好用的神器Apifox,甩 Swagger 几条街...(荣耀典藏版)

食品安全 | 网购的自制食品就是健康食品?莫要陷入这些误区

Emerging security providers to learn about in 2022

Huawei recruited "talented teenagers" twice this year; 5.4 million twitter account information was leaked, with a selling price of $30000; Google fired engineers who believed in AI consciousness | gee

【2243】module_ param.m

RMII, smii, gmii, rgmii interfaces of Ethernet Driver
随机推荐
Tencent cloud and smart industry business group (CSIG) adjusted the organizational structure and established the digital twin product department
Examples of ThreadLocal usage scenarios under multithreading
The database consists of stored procedures and functions
Food safety | what food can be heated in a microwave oven? You should know these potential safety hazards
0 basic programming resources (collect first ~ read slowly ~)
Guys, how can CDC Oracle set the reading from the specified SCN number, or how to set the read-only full archive, not to read fast
[map] universal map usage & two ways of fuzzy query
关于图片地址链接复制问题
一文看懂GaitSet中的test.py
The programmed navigation route jumps to the current route (the parameters remain unchanged), and if it is executed multiple times, it will throw a navigationduplicated warning error?
Access database cannot connect
如何以文本形式查看加密过的信息
Flink is slow to write redis. Do you have any ideas for optimization?
Kubernetes---- installing and deploying NFS servers
高通再次「押宝」中科创达,挑战智能驾驶软硬件全栈方案
实体映射最强工具类:MapStruct真香
Implementation of dynamic and static libraries (packaging dynamic and static libraries for others to use)
Backtracking - 131. Split palindrome string
HCIP-9.OSPF的各种拓展
【5GC】什么是5G切片?5G切片如何工作?