Flutter

Flutter Layout Test 1 ( Column, Row )

Bomhai 2021. 4. 25. 00:07

github.com/bomhai/Flutter/blob/main/test/test1.dart

 

bomhai/Flutter

Contribute to bomhai/Flutter development by creating an account on GitHub.

github.com

처음 하는 Flutter 

이제부터 연습해보자.

실행하면 위와 같이 나온다.

 

import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Simple',
home: Scaffold(
appBar: AppBar(
title: Text('Simple'),
),
body: Center(
child: Row(
children:<Widget>[
Column(
children:<Widget>[
Text('A'),
Text('B'),
Text('C'),
Text('D'),
],
),
Column(
children: <Widget>[
Text('E'),
Text('F'),
Text('G'),
Text('H'),
],
),
Column(
children: <Widget>[
Text('I'),
Text('J'),
Text('K'),
Text('L'),
],
),
]
),
),
),
);
}
}
view raw test1.dart hosted with ❤ by GitHub
사업자 정보 표시펼치기/접기
봄해(BOMHAI) | 이동현 | 경기도 수원시 장안구 상률로 32 103동 1301 | 사업자 등록번호 : 564-09-02316 | TEL : 010-2977-3322 | Mail : dylan@bomhai.com | 통신판매신고번호 : 2023-수원장안-0750호 | 사이버몰의 이용약관 바로가기