커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
Shazam clone 코딩 과제 중 appBar 오버플로우 발생 관련 질문
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
2주차
북마크
김*하
댓글
10
추천
0
조회수
19
조회수
19
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


Padding을 사용하여 오버플로우를 해결할 수 있을거라 생각했는데 해결이 안 됐습니다. 어떤 이유 때문에 해결이 안 되는건가요?

해결책도 궁금합니다.



스파르타 즉문즉답





작성한 코드 및 에러 메세지

// 두번째 페이지

class SecondTab extends StatelessWidget {

  const SecondTab({Key? key}) : super(key: key);


  @override

  Widget build(BuildContext context) {

    return Scaffold(

      appBar: AppBar(

        backgroundColor: Colors.blue,

        leading: Padding(

          padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 8.0),

          child: Column(

            mainAxisAlignment: MainAxisAlignment.center,

            children: [

              Icon(

                Icons.person,

                color: Colors.white,

              ),

              Text(

                "라이브러리",

              ),

            ],

          ),

        ),

        actions: [

          Padding(

            padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 8.0),

            child: Column(

              mainAxisAlignment: MainAxisAlignment.center,

              children: [

                Icon(Icons.show_chart),

                Text("차트"),

              ],

            ),

          ),

        ],

      ),

    );

  }

}




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴