[플러터구현2] 플러터로 프로필 만들기 Drawer, UserAccountsDrawerHeader, ListTile 활용 (코드 설명 포함)
1. 앱바에 아이콘 appbar 왼쪽에는 leading, 오른쪽에는 actions [] 를 사용해 아이콘들을 넣을 수 있다. 이때 actoins 안에는 IconButton의 형태로 아이콘이 들어간다. appBar: AppBar( title: const Text('앱바 부분'), centerTitle: true, actions: [ IconButton( onPressed: () { // --- }, icon: const Icon(Icons.shopping_cart), ), IconButton( onPressed: () { // --- }, icon: const Icon(Icons.search), ), ], ), 2. Drawer scaffold 안에서 appbar, body, bottomnavigation..
2022.04.21