**이 페이지에서 알 수 있는 내용 このページからわかること
- Scaffold
- appBar
- body**
main.dart
...
...
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'You have pushed the button this many times: ',
),
Text('$_counter',style: Theme.of(context).textTheme.headlineMedium)
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
}

Scaffold
AppBar
body
etc
resizeToAvoidBottomInset
初期のコードでWidget build(BuildContext context)コードの中で一番最初にあるコード
アプリの画面と機能を構成するために空白のページを用意するウイジェット、UIに関してアプリの構成要素、見えない要素が使用される
appBarというプロパティにあるウイジェットでアプリの上部をデザインすることができる
AppBarは上の部分を担当するなら、bodyプロパティは下の部分を全部担当すると思えばいい
AppBarがないの場合、画面の全体がbodyの範囲になる
キーボードを使用するとき、キーボードがbodyの領域を侵さないように画面の分割することになりますが、 この場合、分割をするか、上書きするのかを設定することができる