🐣
【Flutter】Textbotton 文字書いてあるボタン
Textbottonについて
TextButtonはボタンにテキストを乗られます
このように記述します
TextButton(
child:Text('ボタンに表示したいテキスト'),
//テキストの色を変更する場合今回は赤
style:TextButton.styleFrom(primary:Colors.red),
onPress:(){
print('TextButtonが押された際の処理')
}
このように表示されます

Discussion