如何创建特定的文本字段颤动?
How to create specific text fields flutter?
如何在 flutter 中绘制此文本字段并将文本字段添加到其中?
谢谢
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Theme(
data: ThemeData(primaryColor: Colors.purple),
child: TextField(
decoration: InputDecoration(
labelText: "Password",
fillColor: Colors.white,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(30.0),
borderSide: BorderSide(
color: Colors.purple,
),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(30.0),
borderSide: BorderSide(
color: Colors.purple,
width: 2.0,
),
),
),
),
);
}
}
给边框添加渐变似乎很难。您可以查看 了解更多信息。
如何在 flutter 中绘制此文本字段并将文本字段添加到其中?
谢谢
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Theme(
data: ThemeData(primaryColor: Colors.purple),
child: TextField(
decoration: InputDecoration(
labelText: "Password",
fillColor: Colors.white,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(30.0),
borderSide: BorderSide(
color: Colors.purple,
),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(30.0),
borderSide: BorderSide(
color: Colors.purple,
width: 2.0,
),
),
),
),
);
}
}
给边框添加渐变似乎很难。您可以查看