Flutter TextField设置下划线颜色 光标颜色
2020-06-11 本文已影响0人
菜鸟考官
//这两句
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black),
),
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.orange),
),
TextField(
decoration: InputDecoration(
hintText: "填写活动名称",
hintStyle: TextStyle(fontSize: 16, color: Config.aiderTextColor3),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black),
),
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.orange),
),
),
),