Flutter Expanded, Flexible

Walter·2021년 12월 29일
0

Flutter

목록 보기
1/1

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp()); //앱 구동시켜주세요
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('appBar 임'),
        ),
        body: Column(
          children: [
            Container(color: Colors.red, height: 200,),
            Container(color: Colors.blue,height: 200,),
            Container(color: Colors.green,height: 200,),
          ],
        ),
      ),
    );
  }
}

profile
지식은 서로 공유하는것

0개의 댓글