커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
어떻게 하는건가요
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
0주차
북마크
박*상
댓글
1
추천
0
조회수
7
조회수
7
답변 완료

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

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


스파르타 즉문즉답

파란동그라이에다가 검색 아이콘을 겹치게 하고 싶은데 height를 높이면 둘다 바뀌는데 어떻게 하나요?






import 'package:flutter/material.dart';


const Color darkBlue = Color.fromARGB(255, 49, 151, 235);


void main() {

  runApp(MyApp());

}


class MyApp extends StatelessWidget {

  @override

  Widget build(BuildContext context) {

    return MaterialApp(

      title: 'Shazam',

      theme: ThemeData(

        scaffoldBackgroundColor: darkBlue,

      ),

      debugShowCheckedModeBanner: false,

      home: Scaffold(

        body: Center(

          child: Scaffold(

            appBar: AppBar(

              backgroundColor: Color.fromARGB(255, 49, 151, 235),

              elevation: 0.5,

              leading: Column(

                children: [

                  SizedBox(

                    width: 16,

                  ),

                  Icon(

                    Icons.person,

                    color: Colors.white,

                  ),

                  Text(

                    '라이브러리',

                    style: TextStyle(

                        color: Color.fromARGB(255, 238, 231, 231),

                        fontWeight: FontWeight.bold,

                        fontSize: 13),

                  )

                ],

              ),

              actions: [

                Column(

                  children: const [

                    Icon(

                      Icons.show_chart,

                      color: Colors.white,

                    ),

                    SizedBox(

                      width: 60,

                      height: 0.5,

                    ),

                    Text(

                      '차트',

                      style: TextStyle(

                          color: Colors.white,

                          fontWeight: FontWeight.bold,

                          fontSize: 13),

                    )

                  ],

                ),

              ],

              leadingWidth: 100,

            ),

            body: Row(

              children: [

                Column(

                  children: [

                    SizedBox(

                      width: 390,

                      height: 130,

                    ),

                    Text(

                      'Shazam하려면 탭하세요',

                      style: TextStyle(

                          color: Colors.white,

                          fontSize: 20,

                          fontWeight: FontWeight.bold),

                    ),

                    Container(

                      alignment: Alignment.center,

                      width: 200,

                      height: 200,

                      decoration: BoxDecoration(

                        color: Colors.blue[300],

                        shape: BoxShape.circle,

                      ),

                      child: Image.network(

                        "https://i.ibb.co/hxNbZ8p/shazam.png",

                        color: Colors.white,

                        width: 130,

                        height: 130,

                      ),

                    ),

                    Container(

                      alignment: Alignment.center,

                      width: 50,

                      height: 100,

                      decoration: BoxDecoration(

                        color: Colors.blue[400],

                        shape: BoxShape.circle,

                      ),

                    ),

                    Icon(

                      Icons.search,

                      color: Colors.white,

                    ),

                  ],

                ),

              ],

            ),

          ),

        ),

      ),

    );

  }

}



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