Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 스프링부트구독취소
- 스프링부트api
- 출처 코딩셰프
- 출처 메타코딩
- vm도커설치하는법
- 스프링부트팔로우취소
- 스프링이미지업로드
- 스프링사진
- 서버에도커설치
- 스프링부트중복예외처리
- 스프링사진업로드
- 멀티폼
- centos도커설치
- 인스타클론
- 스프링구독
- 스프링부트서버에사진전송
- 도커설치하는법
- 스프링부트사진올리기
- WAS웹서버
- springboot_exception_handler
- 출처 따배도
- 스프링부트
- ssh도커설치
- 출처 노마드코더
- 스프링익셉션처리
- 우분투도커설치
- dockerinstall
- 파이썬sort
- 스프링부트팔로잉
- 출처 문어박사
Archives
- Today
- Total
MakerHyeon
[Flutter] 간단한 화면 구성 연습 # 1 본문
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false, // 디버그 없애기
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Grade(), // 앱실행시 가장먼저 보여지는 경로
);
}
}
class Grade extends StatelessWidget {
const Grade({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.amber[800],
appBar: AppBar(
title: const Text('BBANTO'),
backgroundColor: Colors.amber[700],
centerTitle: true,
elevation: 0.0,
),
body: Padding(
padding: const EdgeInsets.fromLTRB(30.0, 40.0, 0.0, 0.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Center(
child: CircleAvatar(
backgroundImage: AssetImage('assets/26.png'),
radius: 60.0, //크기
),
),
Divider(
// 구분선
height: 60.0,
color: Colors.grey[850],
thickness: 0.5,
endIndent: 30.0, // 구분선이 뒤에서 어느정도 떨어져있을지
),
const Text(
'NAME',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0, //철자간 간격
),
),
const SizedBox(
height: 10.0,
),
const Text(
'BBANTO',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0,
fontSize: 28.0,
fontWeight: FontWeight.bold,
),
),
const Text(
'BBANTO POWER LEVEL',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0, //철자간 간격
),
),
const SizedBox(
height: 30.0,
),
const Text(
'14',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0,
fontSize: 28.0,
fontWeight: FontWeight.bold,
),
),
const SizedBox(
height: 30.0,
),
Row(
children: const [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text(
'using lightsaber',
style: TextStyle(
fontSize: 16.0,
letterSpacing: 1.0, // 철자간격
),
),
],
),
Row(
children: const [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text(
'face hero tattoo',
style: TextStyle(
fontSize: 16.0,
letterSpacing: 1.0, // 철자간격
),
),
],
),
Row(
children: const [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text(
'fire flames',
style: TextStyle(
fontSize: 16.0,
letterSpacing: 1.0, // 철자간격
),
),
],
),
Center(
child: CircleAvatar(
backgroundImage: const AssetImage('assets/27.png'),
radius: 40.0,
backgroundColor: Colors.amber[800],
),
),
],
),
),
);
}
}
'Flutter' 카테고리의 다른 글
[Flutter] Drawer (0) | 2023.04.03 |
---|---|
[Flutter] App bar icon button (0) | 2023.04.03 |
[Flutter] 기본 구조 template (0) | 2023.03.28 |
[Flutter] WebtoonCards (0) | 2023.03.25 |
[Flutter] 뽀모도로앱 (0) | 2023.03.24 |
Comments