인프런 - 강의/플루터로 앱 만들기 고고(입문)

8 - 369 게임

----___<<<<< 2020. 4. 20. 16:27

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: samuku(),
    );
  }
}

class samuku extends StatefulWidget {
  @override
  _samukuState createState() => _samukuState();
}

class _samukuState extends State<samuku> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Container(
                child: Text("숫자", style: TextStyle(fontSize: 30),),
            ),
            Padding(
              padding:EdgeInsets.all(20),
            ),
            Container(

              child: Container(
                child: Text(
                  "짝 or not",
                  style: TextStyle(fontSize: 80, color: Colors.red),
                ),
              ),
            ),
            Padding(
              padding:EdgeInsets.all(20),
            ),
            RaisedButton(
              child: new Text(
                "눌러봐용",
              ),
            ),
          ],
        ),
      ),
    );
  }
}

 

 

 

'인프런 - 강의 > 플루터로 앱 만들기 고고(입문)' 카테고리의 다른 글

10 - 369게임 3  (0) 2020.04.22
9 - 369게임 2  (0) 2020.04.21
7 - Image insert  (0) 2020.04.20
6 - show hide  (0) 2020.04.20
5 - 기본 위젯 알아보기  (0) 2020.04.20