「Flutter/click」の版間の差分
提供: 初心者エンジニアの簡易メモ
| 行9: | 行9: | ||
</pre> | </pre> | ||
| − | == | + | ==scaffaldのボタンクリック1== |
<pre> | <pre> | ||
floatingActionButton: FloatingActionButton( | floatingActionButton: FloatingActionButton( | ||
| 行19: | 行19: | ||
), | ), | ||
</pre> | </pre> | ||
| − | == | + | ==scaffaldのボタンクリック2== |
<pre> | <pre> | ||
void _click() { | void _click() { | ||
2019年12月8日 (日) 03:54時点における最新版
クリック追加
GestureDetector(
onTap: () {
print("tap");
},
child: Text("hoge"),
),
scaffaldのボタンクリック1
floatingActionButton: FloatingActionButton(
onPressed:() {
print("ここで処理");
},
tooltip: 'Increment',
child: Icon(Icons.add),
),
scaffaldのボタンクリック2
void _click() {
print("ここで処理");
}
floatingActionButton: FloatingActionButton(
onPressed: _click,
tooltip: 'Increment',
child: Icon(Icons.add),
),
