Skip to content

Instantly share code, notes, and snippets.

@jinyongp
Last active June 28, 2023 09:55
Show Gist options
  • Save jinyongp/9b26d4ef17f9b7df5f125ccd9f3b976a to your computer and use it in GitHub Desktop.
Save jinyongp/9b26d4ef17f9b7df5f125ccd9f3b976a to your computer and use it in GitHub Desktop.
Hello, Flutter!
// 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