250x250
반응형
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
- flutter
- basic
- Equatable
- listview
- SwiftGen
- swiftlint
- OSLog
- keyWindow
- Swift
- COMMIT
- enumerations
- ToDoRim
- dart
- Widget
- toyproject
- it
- pubspec
- designPattern
- reetcode
- pubspec.yaml
- GIT
- algorithm
- protocol
- xcode
- UIAccessibility
- IOS
- tip
- Leetcode
- github
- Extentsion
Archives
- Today
- Total
수니의 개발새발
[Flutter/Widget] Text, SafeArea (Debug 배너 해제) 본문
728x90
반응형
앤써북의 ⌜모두가 할 수 있는 플러터 UI 입문⌟을 참고하여 작성하였습니다.

📌 이번 글은
책의 샘플 앱을 만들면서 공부한 위젯 정리입니다.
Text
- style 속성: Text Style 설정
Text("Hello")
Text("Hello", style: TextStyle(fontWeight: FontWeight.bold))
SafeArea
- 핸드폰 기기별로 조금씩 다른 StatusBar 영역에 여백을 넣어주는 위젯
Debug 배너 해제
- CupertinoApp의 debugShowCheckedModeBanner를 false로 설정
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
debugShowCheckedModeBanner: false,
home: StorePage(),
);
}
}
🙋🏻♀️ 참고
최주호, 정호준, 정동진 공저, ⌜모두가 할 수 있는 플러터 UI 입문⌟, 앤써북(2021), p87-p109
728x90
반응형
'Flutter' 카테고리의 다른 글
| [Flutter/Widget] Scaffold, Container, BoxDecoration, AppBar (0) | 2022.02.23 |
|---|---|
| [Flutter/Dart] final 과 const (0) | 2022.02.15 |
| [Flutter/Widget] Spacer, Padding, Image, Expanded, SizedBox (0) | 2022.02.13 |
| [Mac/AndroidStudio/Flutter] 단축키 모음 (0) | 2022.02.13 |
| [Flutter] pubspec.yaml (0) | 2022.02.02 |
Comments