타이포그래피
body: SizedBox(
child: Text(
'안녕하세요',
style: TextStyle(color: Colors.red), // 색상
style: TextStyle(color: Color(0xFFFFAAAA)), // 색상
style: TextStyle(fontWeight: FontWeight.w700), // 굵기
),
)
버튼
body: SizedBox(
child: TextButton(
child: Text('글자'),
onPressed: (){},
)
),
child: ElevatedButton(
child: Text('글자'),
onPressed: (){},
)
child: IconButton(
icon: Icon(Icons.star),
onPressed: (){},
)
AppBar 안에 넣을 수 있는 것들
title : 왼쪽 제목 leading : 왼쪽에 넣을 아이콘
appBar: AppBar(
title: Text('앱임'),
leading: Icon(Icons.star), // 왼쪽 아이콘
actions: [Icon(Icons.star), Icon(Icons.star)], // 오른쪽 아이콘
),