반응형
[Flutter] RichText
다양한 스타일이 혼합된 텍스트를 쓰고 싶을 때 RichText 위젯을 사용해주면 됩니다. 예를들어 아래 예제처럼 중간 텍스트에만 볼드 처리를 하고 싶을 때 사용합니다. RichText는 TextSpan 으로 구성된 트리로 이루어집니다. 문서의 예제처럼 Hello의 children으로 bold랑 world를 두기 싫으면 이렇게 할 수 도 있습니다. UI는 똑같이 구성됩니다. RichText( text: TextSpan( children: [ TextSpan(text: 'Hello '), TextSpan(text: 'bold', style: TextStyle(fontWeight: FontWeight.bold)), TextSpan(text: ' world!'), ]) ) [ 추천 ] 다양한 Use Case를 ..
🤼♀️/Flutter
2021. 10. 5. 23:38
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Django Heroku Scheduler
- ipad multitasking
- ribs
- github actions
- drf custom error
- DRF APIException
- Python Type Hint
- cocoapod
- 플러터 얼럿
- Flutter Clipboard
- flutter build mode
- 구글 Geocoding API
- Django Firebase Cloud Messaging
- Django FCM
- 장고 URL querystring
- Sketch 누끼
- Flutter 로딩
- PencilKit
- flutter deep link
- Dart Factory
- SerializerMethodField
- flutter dynamic link
- Watch App for iOS App vs Watch App
- Flutter getter setter
- METAL
- 플러터 싱글톤
- Flutter Text Gradient
- 장고 Custom Management Command
- flutter 앱 출시
- Flutter Spacer
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
글 보관함