[5] Flutter 나만의 APP(2)(디자인)

찬과장·2025년 4월 28일

Flutter

목록 보기
5/22
post-thumbnail

학습목표

  • 디자인 관련 Widger을 이해할 수 있다
  • Container, SizeBox에 대해 이해할 수 있다.
  • Expanded, Flexible에 대해 이해할 수 있다.
  • 기본적인 Widget을 배치할 수 있다.

Container Widget

import 'package:flutter/material.dart';

class ExContainer extends StatelessWidget {
  const ExContainer({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Column(
          children: [
            Text(
              'Flutter',
              style: TextStyle(
                  backgroundColor: Colors.amber,
                  fontSize: 40
              ),
            ),
            Container(
                child: Text('flutter'),
                color: Colors.green,
                // width: 80,
                // height: 80,
            ),
          ],
        ),
      ),
    );
  }
}
profile
찬과장의 Daily Reflection

0개의 댓글