2023-12-12|閱讀時間 ‧ 約 2 分鐘

[Flutter]Text

顯示文字

Text('123456')


限制行數

Text('1\n2\n3\n4\n5\n6', maxLines: 2)


顯示樣式

字體大小

Text('123456', style: TextStyle(fontSize: 30))


字體顏色

Text('123456', style: TextStyle(color: Color.fromARGB(255, 255, 255, 255)))


底線

Text('123456', style: TextStyle(decoration: TextDecoration.underline))


中間刪除線

Text('123456', style: TextStyle(decoration: TextDecoration.lineThrough))


粗體

Text('123456', style: TextStyle(fontWeight: FontWeight.bold))








分享至
成為作者繼續創作的動力吧!
此專題是與APP程式設計相關的內容,包含:原生與跨平台。
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

發表回應

成為會員 後即可發表留言