[Flutter]Text

小黑
發佈於APP
2023/12/12閱讀時間約 1 分鐘

顯示文字

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))








7會員
78內容數
嗨,我是一名程式設計師,會在這分享開發與學習紀錄。
留言0
查看全部
發表第一個留言支持創作者!