Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何在Flatter中使用文本字段中的标签文本?_Flutter_Flutter Layout_Flutter Dependencies_Flutter Animation_Flutter Web - Fatal编程技术网

Flutter 如何在Flatter中使用文本字段中的标签文本?

Flutter 如何在Flatter中使用文本字段中的标签文本?,flutter,flutter-layout,flutter-dependencies,flutter-animation,flutter-web,Flutter,Flutter Layout,Flutter Dependencies,Flutter Animation,Flutter Web,1我的标签文本有一些带边框的填充,如何删除该空格? 2如何在文本字段的边框内写入标签文本? 3如何在颤振中调整标签文本的对齐 1)对于textformfield中的填充,您应该在装饰中编辑contentPadding,例如: TextField( maxLines: 8, decoration: InputDecoration( contentPadding: EdgeInsets.fromLTRB(0,0,0,0), <-- labelText: 'D

1我的标签文本有一些带边框的填充,如何删除该空格? 2如何在文本字段的边框内写入标签文本? 3如何在颤振中调整标签文本的对齐

1)对于textformfield中的填充,您应该在装饰中编辑contentPadding,例如:

TextField(
   maxLines: 8,
   decoration: InputDecoration(
      contentPadding: EdgeInsets.fromLTRB(0,0,0,0), <--
      labelText: 'Description',
      labelStyle: txtHintStyle,
   )
 )
TextField(
maxLines:8,
装饰:输入装饰(

contentPadding:EdgeInsets.fromLTRB(0,0,0,0),只问一个问题..并添加您尝试的代码,如zomato biker
TextFormField(
  textAlign: TextAlign.center,    <--
  controller: _username,
),