반응형
어떤 언어든지 새롭게 공부하는 것은 참 어려운것 같습니다. 알듯하면서 막상 뒤돌아보면 까먹게 되는 것이 언어이듯합니다. 앱을 만들든 웹을 만들든 좋은 도구들이 있긴 하지만 보기 좋게 만들기 위해서는 소통할수 있는 언어가 필요한데요. 지금 열심히 해보고 있습니다. Flutter로 계속 연습중
연습 결과물 화면
Stateless를 기본으로 만들었습니다. 사용자가 앱에 들어왔을때 동적인 내용이 없고 단순 보여주는 것이 전부입니다. 좀더 역동적이고 이용자의 정보를 이용하여 앱을 구동하기 위해서는 좀더 배워야 할듯합니다. 이것으로 과연 어디까지 갈수 있을지가 매우 궁금합니다.
Coding
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,
title: 'BBANTO',
home: Grade(),
);
}
}
class Grade extends StatelessWidget {
const Grade({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.amber[800],
appBar: AppBar(
title: Text('BBANTO'),
backgroundColor: Colors.amber[700],
centerTitle: true,
),
body: Padding(
padding: EdgeInsets.fromLTRB(30.0, 40.0, 0.0, 0.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Center(
child: CircleAvatar(
backgroundImage: AssetImage('a.jpg'),
radius: 60.0,
),
),
Divider(
height: 60.0,
color: Colors.grey[850],
thickness: 0.5,
endIndent: 30.0,
),
Text('NAME',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0
),
),
SizedBox(
height: 10.0,
),
Text('BBANTO',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0,
fontSize: 28,
fontWeight: FontWeight.bold
),
),
SizedBox(
height: 30,
),
Text('BBANTO POWER LEVEL',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0
),
),
SizedBox(
height: 10.0,
),
Text('14',
style: TextStyle(
color: Colors.white,
letterSpacing: 2.0,
fontSize: 28,
fontWeight: FontWeight.bold
),
),
SizedBox(
height: 30.0,
),
Row(
children: [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text('using lightsaber',
style: TextStyle(
fontSize:16.0,
letterSpacing: 1.0
),
),
],
),
Row(
children: [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text('Face hero tattoo',
style: TextStyle(
fontSize:16.0,
letterSpacing: 1.0
),
),
],
),
Row(
children: [
Icon(Icons.check_circle_outline),
SizedBox(
width: 10.0,
),
Text('Fire Flames',
style: TextStyle(
fontSize:16.0,
letterSpacing: 1.0
),
),
],
),
Center(
child: CircleAvatar(
backgroundImage: AssetImage('b.png'),
radius: 60.0,
backgroundColor: Colors.amber[800],
),
)
],
),
),
);
}
}
반응형
댓글