본문 바로가기
Flutter

[Flutter] 쉬운 플러터 2강 숙제

by ♡˖GYURI˖♡ 2023. 6. 21.
728x90
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('앱임')
        ),
        body: Container(
          child: Text('안녕')
        ),
        bottomNavigationBar: BottomAppBar(
          child: SizedBox(
            height: 70,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: [
                Icon(Icons.phone),
                Icon(Icons.message),
                Icon(Icons.contact_page)
              ],
            ),
          )
        ),
      )
    );
  }
}

 

 

 

 

 

참조 : https://www.youtube.com/watch?v=U6rLIFn59Kw&list=PLfLgtT94nNq1izG4R2WDN517iPX4WXH3C&index=3 

 

'Flutter' 카테고리의 다른 글

[Flutter] 쉬운 플러터 6강 숙제  (0) 2023.06.21
[Flutter] 쉬운 플러터 5강 숙제  (0) 2023.06.21
[Flutter] StatelessWidget, StatefulWidget  (0) 2023.06.21
[Flutter] Dart  (0) 2023.06.21
[Flutter] 플러터 시작하기  (0) 2023.06.20