Container(
color: Colors.black12,
constraints: BoxConstraints(maxHeight: 30),
child: TextField(
textAlignVertical: TextAlignVertical.bottom,
focusNode: secondTextFieldNode,
decoration: InputDecoration(
hintText: '请输入',
border: OutlineInputBorder(borderSide: BorderSide.none),
// contentPadding: EdgeInsets.all(0),
),
textCapitalization: TextCapitalization.characters,
),
),
主要是这两个属性
textAlignVertical: TextAlignVertical.bottom border: OutlineInputBorder(borderSide: BorderSide.none),
网友评论