20.0.5594570
서브 디렉토리에 있는 파일을 추가하려면 디렉토리마다 지정해야 한다.
flutter:
assets:
- assets/my_icon.png
- directory/
- directory/subdirectory/
안드로이드 해상도 단위 Flutter 픽셀 비율
ldpi 0.75x
mdpi 1.0x
hdpi 1.5x
xhdpi 2.0x
xxhdpi 3.0x
xxxhdpi 4.0x
(https://flutter.dev/docs/development/platform-integration/platform-channels)
import ‘dart:io’ show Platform;
if (Platform.isAndroid) {
// Android-specific code
} else if (Platform.isIOS) {
// iOS-specific code
}
https://flutter.dev/docs/development/accessibility-and-localization/internationalization
(https://software-creator.tistory.com/24)
flutter pub run intl_translation:extract_to_arb --output-dir=lib/i18n lib/i18n/messages.dart
flutter pub run intl_translation:generate_from_arb --output-dir=lib/i18n --no-use-deferred-loading lib/i18n/messages.dart lib/i18n/intl_*.arb
Use
import '/i18n/messages.dart';
final msg = Messages()
//in widget
Text(msg.appName)
BLOC : https://bloclibrary.dev/#/gettingstarted
Naming Conventions : [https://bloclibrary.dev/#/blocnamingconventions](https://bloclibrary.dev/#/blocnamingconventions)