flutter - 如何隐藏 TextField 的底部边缘?
解决方案
您可以使用以下*border
参数:TextField
TextField(
decoration: InputDecoration(
hintText: '(201) 555-0123',
// Hides the border when the TextField is enabled
enabledBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.transparent),
),
// Hides the border when you click the TextField
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.transparent),
),
// Hides the border when the TextField is disabled
disabledBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.transparent),
),
),
)
推荐阅读
- python - 在 Python 中使用 ANTLR4 解析数学表达式
- php - 满足特定条件时如何停止 webhook 执行?
- python - 模板渲染期间出错。过滤器无效:'bootstrap'
- python-3.x - Django 模型:“ModelFormOptions”对象没有属性“private_fields”
- reactjs - TypeError:无法读取 tsx 文件上未定义的属性“地图”
- selenium-webdriver - Selenium Webdriver + Jmeter + StormRunner 进行性能测试
- angular - 重置表单值后无法设置文本框值
- encryption - 图片,视频在whatsapp中加密了吗?
- python - python datetime到数字var?
- flutter - 如何在颤动中将数组导出到文本文件?