flutter - 颤振文本字段光标碎片问题
问题描述
框架:Flutter 语言:Dart 在应用程序中的所有文本字段中,光标都是垂直切开的。看起来,我找不到任何导致这种情况的设置。
我怎样才能使它全长?
我正在使用最新的稳定颤振版本:v1.9.1+hotfix.6
文本字段实现:
TextEditingController phoneNumber = TextEditingController();
TextField(
textAlignVertical: TextAlignVertical.center,
controller: phoneNumber,
keyboardType: TextInputType.number,
enabled: true,
maxLength: 10,
maxLengthEnforced: true,
decoration: InputDecoration(
prefixText: '+91-',
contentPadding: EdgeInsets.only(left: 5.0, bottom: 5.0),
),
),
解决方案
推荐阅读
- reactjs - 我在测试我的自定义组件时遇到问题
- fluentd - 如何防止 td-agent / fluentd 插入不需要的元数据?
- windows - 禁用 Microsoft Edge (Chromium) 开发人员模式扩展在启动时弹出
- security - graphql 的选择发生在哪一侧?
- c# - CrossCurrentActivity 在依赖项中为空,即使它已初始化并且在应用程序中不为空
- python - 对 Flask 的字符串 POST 请求
- python - 如何对python中数据框列中的唯一值执行函数
- javascript - 如何从 HTML 标签中删除 CSS 属性
- python - Pandas 在单个 dataRow 中写入具有自定义限制值的 CSV 文件
- c - 文本段如何设置为只读?