일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- android
- ScrollView
- CustomScrollView
- textview
- 안드로이드
- tabbar
- livedata
- 계측
- binding
- activity
- Navigation
- 앱바
- 앱
- LifeCycle
- Compose
- scroll
- drift
- Dialog
- DART
- viewmodel
- textfield
- Flutter
- TEST
- Kotlin
- intent
- appbar
- data
- Button
- Coroutines
- 테스트
- Today
- Total
목록TextStyle() (2)
Study Record
✍ theme 글꼴 적용 보통 Text(...) 위젯의 스타일(style)을 적용하려면 다음과 같이 Text() 위젯마다 TextStyle() 를 일일이 적용해야 한다. Text( "하늘하늘 맑은 하늘", style: TextStyle( color: Colors.white, fontSize: 70.0, fontFamily: 'parisienne' ), ); 중복되는 TextStyle() 를 하나로 통합해서 사용할 수 있는 방법이 theme 에 textTheme 이다. main 함수가 있는 MaterialApp 의 theme 인자값에 TextStyle() 을 설정한다. MaterialApp( theme: ThemeData( textTheme: TextTheme( headline1: TextStyle( co..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cR0F9D/btrXQgxBeOD/ZDAUKjtdtonloT49iPM0u0/img.png)
✍ Text Class 단일 스타일의 텍스트를 보여준다. Text( String this.data, { super.key, this.style, this.strutStyle, this.textAlign, this.textDirection, this.locale, this.softWrap, this.overflow, this.textScaleFactor, this.maxLines, this.semanticsLabel, this.textWidthBasis, this.textHeightBehavior, this.selectionColor, }) ※ 인자값 1. 글자 데이터(String this.data) 보여줄 텍스트를 지정한다. 2. 글자 스타일(TextStyle this.style) 텍스트의 스타일을 결정..