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

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

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


차트 글자와 차트 그림을 같이 대칭을 맞추고 오른쪽 라이브러리처럼 간격을 띄우고 싶은데 어떻게 해야하나요?



스파르타 즉문즉답





작성한 코드 및 에러 메세지

import 'dart:ui';


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(

      theme: ThemeData.dark().copyWith(

        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: 30,

                      height: 10,

                    ),

                    Text(

                      '차트',

                      style: TextStyle(

                          color: Colors.white,

                          fontWeight: FontWeight.bold,

                          fontSize: 12),

                    )

                  ],

                ),

              ],

              leadingWidth: 100,

            ),

          ),

        ),

      ),

    );

  }

}


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