[Flutter] 플러터 기초 (5) - cupertino ui button, material ui button
Flutter 플러터 기초 (5) - cupertino ui button, material ui button
이모티콘・01・고양이 마멋 친구들 - Google Play 앱
이모티콘・01・고양이 마멋 친구들: 무료 이모티콘, 회원가입 없이! 카톡, SNS로 감정 표현이 쉬워져요. 귀여움 가득, 대화창을 더 풍성하게!
play.google.com
안녕하세요 정보처리마법사 입니다.
이번 포스팅의 주제는 쿠퍼티노 버튼 머테리얼 버튼에 관한 내용입니다.
쿠퍼티노 디자인은 iOS, 머테리얼 디자인은 Android라고 생각하시면 됩니다.
이상으로 포스팅을 마칩니다. 감사합니다.
main.dart는 위쪽 스샷처럼 한 줄만 변경하면 되므로 따로 소스코드를
첨부하진 않겠습니다.
cupertino_page.dart
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
|
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
class CupertinoPage extends StatefulWidget {
@override
_CupertinoPageState createState() => _CupertinoPageState();
}
class _CupertinoPageState extends State<CupertinoPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: CupertinoNavigationBar(
middle: Text('Cupertino Style UI',style: TextStyle(color: Colors.blue),),
),
body: Column(
children: <Widget>[
CupertinoButton(
child: Text('Cupertino Button',style: TextStyle(color: Colors.pink),),
),
RaisedButton(
child: Text('Material Button',style: TextStyle(color: Colors.teal),),
)
],
),
);
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4f; text-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white">cs |
Ctrl + C , Ctrl + V
이상으로 포스팅을 마칩니다. 감사합니다.
잘 못 된 정보가 있으면 말씀해주세요.
공감버튼 클릭은 작성자에게 큰 힘이 됩니다. 행복한 하루 되세요.
“파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있음"
'Flutter' 카테고리의 다른 글
[Flutter] 플러터 기초 (7) - 레이아웃 예제(Layout tutorial) (0) | 2019.07.10 |
---|---|
[Flutter] 플러터 기초 (6) - 리스트뷰 위젯(ListView Widget) 예제. (0) | 2019.07.10 |
[Flutter] 플러터 기초 (4) - Hello World, FloatingActionButton 등 기본 예제. (0) | 2019.06.28 |
[Flutter] 플러터 기초 (3) - 플러그인 사용하기. 토스트(Toast) 예제. (0) | 2019.06.28 |
[Flutter] 플러터 기초 (2) - 리스트, 스낵바 등 기초 연습. (3) | 2019.06.26 |