티스토리 뷰
before
dependencies:
flutter:
sdk: flutter
after (2줄 추가 flutter_localizations:)
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
ex) main.dart
MaterialApp(
title: 'Hello, Flutter',
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: [
Locale('ko', 'KR'),
// Locale('es', ''), // Spanish, no country code
],
);
참고 링크:
Internationalizing Flutter apps | Flutter
Internationalizing Flutter apps
How to internationalize your Flutter app.
docs.flutter.dev
GlobalMaterialLocalizations class - flutter_localizations library - Dart API
country_code_picker | Flutter Package (pub.dev)
country_code_picker | Flutter Package
A flutter package for showing a country code selector. In addition it gives the possibility to select a list of favorites countries, as well as to search using a simple searchbox
pub.dev
'01.모바일 > Flutter' 카테고리의 다른 글
[Flutter] flutter_launcher_icons 에러 minSdk (0) | 2022.03.15 |
---|---|
[Flutter] Your project requires a newer version of the Kotlin Gradle plugin. 플러터 업그레이드 후 빌드 에러 (0) | 2022.03.08 |
[Flutter] DateFormat (0) | 2022.03.01 |
[Flutter] flutter upgrade 플러터 업그레이드 (0) | 2022.02.28 |
[Flutter] 디버깅 시작 방법 (0) | 2022.02.26 |
- Total
- Today
- Yesterday
- 스마트포토
- 명령어
- portrait
- mariadb
- 독산시대
- AWS
- IOS
- 안드로이드 스튜디오
- Android
- vs code
- 맥
- NPM
- flutter
- flutter_launcher_icons
- GIT
- tip
- electron
- EC2
- 몽고DB
- CentOS
- Qt Creator
- MAC
- prebuilt
- 중곡동
- windows
- 윈도우
- RDS
- nodejs
- vscode
- 단축키
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |