[Flutter]SnackBar

閱讀時間約 1 分鐘
GestureDetector(
onTap: () {
const snackBar = SnackBar(content: Text('Tap'));

ScaffoldMessenger.of(context).showSnackBar(snackBar);
},
child: Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(5),
),
child: const Text('Button'),
),
)
7會員
107內容數
嗨,我是一名程式設計師,會在這分享開發與學習紀錄。
留言0
查看全部
發表第一個留言支持創作者!
小黑與程式的邂逅 的其他內容
[Flutter]套件管理
閱讀時間約 1 分鐘
[Flutter]ListView
閱讀時間約 3 分鐘
[Flutter]GridView
閱讀時間約 1 分鐘
[Flutter]Table
閱讀時間約 1 分鐘
[Flutter]SharedPreferences
閱讀時間約 1 分鐘
[Flutter]SQLite
閱讀時間約 5 分鐘