iOS 的 Material Design 看起来不太好,尤其是 TextField。那么有什么方法可以创建自己的吗?或者有什么方法可以给 TextField 添加一些样式,让它看起来很圆?
最佳答案
您可以在 TextField
的装饰参数中添加圆角
TextField(
decoration: InputDecoration(
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
),
filled: true,
hintStyle: TextStyle(color: Colors.grey[800]),
hintText: "Type in your text",
fillColor: Colors.white70),
)
https://stackoverflow.com/questions/49257641/
相关文章:
flutter - 如何检查滚动位置是在 ListView 的顶部还是底部?
dart - 有没有办法在 InitState 方法上加载异步数据?
firebase - Flutter 和 google_sign_in 插件 : PlatformE
android - 如何在单击推送通知时打开特定屏幕以进行 flutter
json - 如何在 flutter 中反序列化来自json的对象列表
firebase - flutter 和 Firebase : Compression before
dart - Flutter - 在路由之间推送和获取值(value)