디바이스 화면을 가로 또는 세로로 고정해서 사용하고자 할 경우 아래와 같이 설정 1) 세로 SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); 2) 가로 SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]); ※ 자세히 보면 배열이라서 추가로 설정이 가능함. 세로지만 위아래가 있고, 가로지만 좌우가 있으니 2개씩 선언이 가능함
1. ADB 폴더로 이동 - 윈도우(Windows) cd C:\Users\사용자명\AppData\Local\Android\Sdk\platform-tools - 맥(Mac) cd ~/Library/Android/sdk/platform-tools/ 2. 모바일기기랑 연결 - .\adb connect 1.2.3.4:1234 - adb 실행파일이 있는 곳에서 모바일기기의 아이피와 포트를 이용해서 연결함 - ip_addr:port 3. 만약 연결이 안된다면 모바일기기에서 페어링이 되어 있는지 확인한다 - 안되어 있으면 pairing을 한다 - .\adb pair 1.2.3.4:1234
패키지 설치 파일명:pubspec.yaml 아래내용 추가 dev_dependencies: flutter_launcher_icons: ^0.9.2 flutter pub get 프로젝트에 flutter_launcher_icons.yaml 파일 추가 flutter_launcher_icons.yaml 파일에 추가할 내용 flutter_icons: android: "launcher_icon" ios: true image_path: "assets/icons/launcher_icon.png" 런처 아이콘 적용 명령어(console) flutter pub run flutter_launcher_icons:main 혹시 에러 발생하면https://comuhyun.tistory.com/174?category=780317
release apk 빌드시 저런 비스무레한 에러 발생하면 아래처럼 변경해 보자 위치 : app/src/build.gradle before dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } after dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" }
════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.9.1) ════════════════════════════════════════════ ✓ Successfully generated launcher icons Unhandled exception: FormatException: Invalid number (at character 1) ^ #0 int._handleFormatError (dart:core-patch/integers_patch.dart:129:7) #1 int.parse (dart:core-patch/integers_patch.dart:55:14) #2 minSdk (package:flutter_launcher_i..
에러 ┌─ Flutter Fix ───────────────────────────────────────── │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update │ D:\00.Project\01.Mobile\search_app\android\build.gradle: │ ext.kotlin_version = '' └─────────────────────────────────────────────── 수정 내용 위치 : android\build.grad..
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('..
패키지 : intl | Dart Package (pub.dev) intl | Dart Package Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues. pub.dev 사용법 : DateFormat('yyyy/MM/dd').format(DateTime.now()), -> 2022/01/01
- Total
- Today
- Yesterday
- EC2
- 명령어
- 독산시대
- GIT
- 단축키
- nodejs
- 맥
- Android
- NPM
- CentOS
- prebuilt
- Qt Creator
- flutter_launcher_icons
- windows
- vscode
- 몽고DB
- 안드로이드 스튜디오
- electron
- mariadb
- 윈도우
- 스마트포토
- vs code
- tip
- landscape
- 중곡동
- MAC
- portrait
- flutter
- 부대찌개
- 디자인패턴
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |