Dev 283

[VScode] 자주 쓰는 단축키 모음 for Mac

- ⇧ : shift - ⌥ : option - ⌘ : command 1. Terminal 열기 - ⌘ +` 2. 전체 자동 정렬 (alignment) - ⇧ + ⌥ + F 3. 라인 이동 (move) - ⌥ + Up - ⌥ + Down 4. 라인 복사 (copy) - ⌥ + ⇧ + Up - ⌥ + ⇧ + Down 5. 함수 정의로 이동 - fn + F12 6. 멀티 커서 - ⌘ + ⌥ + ⇧ + Up - ⌘ + ⌥ + ⇧ + Down 7. 라인 삭제 - ⌘ + ⇧ + K 8. 변수 전체 수정 - fn + F2 9. 어플리케이션 실행 -> ⌘ + ⇧ + D(Run & Debug 창 열기) -> fn + F5 (Run & Debug) 10. 이전 / 이후 위치로 이동(함수 타고 들어갔을때 바로 함수 타기 ..

Dev/Others 2023.12.21

Flutter DropdownButton 글자 중앙정렬

Flutter 에서 DropdowButton 의 텍스트를 중앙정렬 하기 위한 방법 1. DropdownButton 을 최대로 확장한다. DropdownButton( isExpanded: true, ... ) 2. DropdownButton 의 DropdownMenuItem 에서 child 를 Center 로 감싸준다. return DropdownMenuItem( value: value, child: Center( child: Text( value, textAlign: TextAlign.center, ), ), ); https://stackoverflow.com/a/63995395/3897810 How to center text in DropdownButton? I'm trying to make the D..

Dev/Flutter 2023.12.16

Flutter - Cannot provide both a color and a decorationTo provide both, use "decoration: BoxDecoration(color: color)".

오류 Cannot provide both a color and a decoration To provide both, use "decoration: BoxDecoration(color: color)". 'package:flutter/src/widgets/container.dart': Failed assertion: line 270 pos 15: 'color == null || decoration == null' 이유 Container 위젯 안에 색 설정이 중복으로 들어가서 발생한 오류이기에, BoxDecoration 에서만 배경색을 설정하면 된다. 잘못된 형식 Container( decoration: BoxDecoration( color: Colors.red, ... ), ... color: Colors...

Dev/Error 2023.11.24

Flutter - ../../../.pub-cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.

오류 ../../../.pub-cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class. Dart 을 업그레이드 해주니 해결 dart pub upgrade 해결 : https://github.com/dart-lang/sdk/issues/52570 Watcher fails with `class 'FileSystemEvent' can't be extended`, for dart, no..

Dev/Error 2023.11.24

JetpackCompose - SplashScreen API

과업 정의 : - 스플래시 스크린은 3초 유지하면서 로고는 애니메이션 처리 한다. 1. 라이브러리 추가 implementation("androidx.core:core-splashscreen:1.1.0-alpha02") 2. 컴파일 버전 맞추기 android { compileSdk = 34 ... } Dependency 'androidx.core:core-splashscreen:1.1.0-alpha02' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. 3. Splash 화면을 위한 Theme 에서 스타일 적용 기본 themes.xml android 31..

Dev/Android 2023.11.16

Flutter - Could not build the precompiled application for the device

Could not build the precompiled application for the device. Error (Xcode): Sandbox: rsync.samba(79798) deny(1) file-write-create /.../build/ios/Debug-iphoneos/Flutter.framework Error (Xcode): Sandbox: dart(79778) deny(1) file-write-create /.../build/ios/Debug-iphoneos/.last_build_id Error (Xcode): Flutter failed to write to a file at "/.../build/ios/Debug-iphoneos/.last_build_id". Xcode15 이상으로 업..

Dev/Flutter 2023.11.10