반응형
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(
home: Scaffold(
backgroundColor: Colors.teal,
body: SafeArea(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CircleAvatar(
radius: 50.0,
backgroundImage: AssetImage('images/profile.png'),
),
Text(
"Anpigon",
style: TextStyle(
fontSize: 40.0,
fontFamily: 'Pacifico',
color: Colors.white,
),
),
Text(
'FLUTTER DEVELOPER',
style: TextStyle(
fontFamily: "SourceSansPro",
fontSize: 20.0,
color: Colors.teal.shade100,
letterSpacing: 2.5,
fontWeight: FontWeight.bold,
),
),
SizedBox(
height: 20,
width: 150,
child: Divider(color: Colors.teal.shade100),
),
Card(
margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
child: ListTile(
leading: Icon(
Icons.phone,
color: Colors.teal,
),
title: Text(
'+91 987 654 3210',
style: TextStyle(
color: Colors.teal.shade900,
fontFamily: 'SourceSansPro',
fontSize: 20.0,
),
),
),
),
Card(
margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
child: ListTile(
leading: Icon(
Icons.email,
color: Colors.teal,
),
title: Text(
'anpigon@email.com',
style: TextStyle(
color: Colors.teal.shade900,
fontFamily: 'SourceSansPro',
fontSize: 20.0,
),
),
),
),
],
),
),
),
);
}
}
Fonts
- Padifico: https://fonts.google.com/specimen/Pacifico
- Source Sans Pro: https://fonts.google.com/specimen/Source+Sans+Pro
반응형
'개발 > 플러터(Flutter)' 카테고리의 다른 글
(Flutter) Auto Route 사용하기 (0) | 2022.03.30 |
---|---|
플러터 최강 code generator freezed 사용하기 (0) | 2022.03.08 |
Flutter 에서 bitsdojo_window 빌드 오류 해결 방법 (0) | 2022.02.12 |
Flutter 앱 개발을 정말 쉽고 빠르게 시작하기: Get CLI for GetX (0) | 2021.11.07 |
Flutter로 Android 런처 만들기 (0) | 2021.10.09 |