생략....
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Instagram"),
actions:[
IconButton(
icon: Icon(Icons.add_box_outlined),
onPressed: (){},
iconSize: 30,
)
],
),
);
}
}
출력시에 'Instagram'이라는 글자가 appbar 정중앙에 위치하게 됩니다.
따로 center을 주지도 않았는데 왜 이러는 걸까요 ㅠ