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 |