Last active
June 28, 2023 09:55
-
-
Save jinyongp/9b26d4ef17f9b7df5f125ccd9f3b976a to your computer and use it in GitHub Desktop.
Hello, Flutter!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ignore_for_file: prefer_const_constructors | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
centerTitle: true, | |
title: Text( | |
"Hello Flutter", | |
style: TextStyle( | |
fontSize: 28, | |
), | |
)), | |
body: SingleChildScrollView( | |
child: Padding( | |
padding: const EdgeInsets.all(16), | |
child: Column( | |
children: [ | |
Padding( | |
padding: const EdgeInsets.all(32), | |
child: Image.network( | |
"https://i.ibb.co/nngK6j3/startup.png", | |
width: 80, | |
), | |
), | |
TextField( | |
decoration: InputDecoration( | |
labelText: "이메일", | |
), | |
), | |
TextField( | |
obscureText: true, | |
decoration: InputDecoration( | |
labelText: "비밀번호", | |
), | |
), | |
Container( | |
margin: const EdgeInsets.only(top: 24), | |
width: double.infinity, | |
child: ElevatedButton( | |
onPressed: () {}, | |
child: Text("로그인"), | |
), | |
) | |
], | |
), | |
), | |
)), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment