小智 37
是的,在InputDecoration中将floatingLabelBehavior设置为never。这对我有用。
decoration: InputDecoration(
floatingLabelBehavior: FloatingLabelBehavior.never,
),
Run Code Online (Sandbox Code Playgroud)
是的,有可能吗。只需删除中的hintText和即可。labelTextInputDecoration
decoration: InputDecoration(
border: OutlineInputBorder(
borderRadius: const BorderRadius.all(
const Radius.circular(5.0),
)),
// hintText: Localization.of(context).accessLevel,
// labelText: Localization.of(context).accessLevel,
),
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9243 次 |
| 最近记录: |