我有一個簡單的登錄表單。但我想改變浮動標簽的位置。我不希望浮動標簽出現在邊框上。為了讓它更清楚:它是我想要的:
聚焦前:

聚焦后:

我怎樣才能做到?感謝幫助!
uj5u.com熱心網友回復:
TextField(
style: Theme.of(context).textTheme.headline3,
keyboardType: TextInputType.number,
onChanged: (value) {
},
decoration: InputDecoration(
border: InputBorder.none,
fillColor: Colors.black12,
filled: true,
labelText: 'Enter here'
),
),
嘗試這個
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/448439.html
