Flutter 如何在颤振中创建具有边界半径的文本字段???
我想在flatter中向这个文本字段添加边界半径。 我的代码是Flutter 如何在颤振中创建具有边界半径的文本字段???,flutter,flutter-layout,Flutter,Flutter Layout,我想在flatter中向这个文本字段添加边界半径。 我的代码是 new Container( padding: const EdgeInsets.only(bottom: 10.0, top: 20.0), child: new Opacity( opacity: 0.7, child: new TextField( style: new Text
new Container(
padding: const EdgeInsets.only(bottom: 10.0, top: 20.0),
child: new Opacity(
opacity: 0.7,
child: new TextField(
style: new TextStyle(
fontSize: 18.0,
height: 1.1,
color: Colors.white,
fontFamily: 'Akrobat-Bold'),
decoration: InputDecoration(
filled: true,
fillColor: const Color(0xFF808285),
hintStyle: TextStyle(
color: Colors.white, fontFamily: 'Akrobat-Bold'),
border: InputBorder.none,
hintText: 'User ID'),
)),
),
提前感谢。您可以使用OutlineInputBorder类
您可以使用OutlineInputBorder类
谢谢@RaoufRahiche工作正常。谢谢@RaoufRahiche工作正常。
TextField(
decoration: InputDecoration(
border: UnderlineInputBorder(
borderRadius:BorderRadius.circular(5.0)),
hintText: 'Please enter a search term'
),
);