본문 바로가기
Flutter

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

by ♡˖GYURI˖♡ 2023. 6. 21.
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(),
        body: ListView(
          children: [
            Row(
              children: [
                Image.asset('dog.jpg', width: 150),
                Text('귀여운 강아지'),
              ],
            ),
            Row(
              children: [
                Image.asset('dog.jpg', width: 150),
                Text('깜찍한 강아지'),
              ],
            ),
            Row(
              children: [
                Image.asset('dog.jpg', width: 150),
                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=Y1Q4-GxIUHc&list=PLfLgtT94nNq1izG4R2WDN517iPX4WXH3C&index=7 

 

'Flutter' 카테고리의 다른 글

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