본문 바로가기

개발83

[Flutter] web에서 회색화면나오는 버그 문제 진행중인 flutter app 프로젝트를 web에서도 실행할수있게 작업한뒤 배포했다. flutter run -d chrome --web-renderer html 명령어로 웹에서 실행하여 테스트했었는데 디버그할때는 이렇게 잘나왔었던 화면이, 빌드해서 firebase hosting으로 배포하니까 아래처럼 회색화면으로 나오는 문제가 있었다. 해결 잘못된 expended 사용의 문제였다 앱에서 디버깅할때는 expended 잘못사용하고있다고 디버그콘솔에 나오는데, 웹으로 하다보니 체크하지못했다 앱에서도 저렇게 Exception은 나오지만 화면은 잘 동작했었기때문에 바로 알아채지못했다. 이상하게 사용되는 expended를 제거하니까 정상적으로 화면이 나왔다 2022. 12. 26.
vscode 테마추천 https://github.com/nealmckee/penumbra GitHub - nealmckee/penumbra: Penumbra Color Theme Penumbra Color Theme. Contribute to nealmckee/penumbra development by creating an account on GitHub. github.com vscode extension에서 설치가능 2022. 12. 19.
[Flutter] container background gradient flutter 그라데이션 주기 (외국에서는 gradient로 부른다고함) 자주는 아니지만 가끔 쓰는경우가있어서 정리해본다 LinearGradient Container( decoration: const BoxDecoration( gradient: LinearGradient( begin: Alignment.centerLeft, end: Alignment.centerRight, colors: [ Colors.yellow, Colors.pink, ], ), ), ), Container( decoration: const BoxDecoration( gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment(0.8, 1), colors: [ Color(0x.. 2022. 12. 19.
[Flutter] dio 사용중 에러 Connection refused (OS Error: Connection refused, errno = 111), address = 10.0.2.2, port = 52314 문제 지금 API 서버로 Nest.JS를 로컬에서 실행하고있다. port는 3000이다 앱 테스트를 위해 안드로이드 실기기를 맥북에 연결후 빌드해서 api를 사용하려는데 아래 에러가 발생했다 [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.other]: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 10.0.2.2, port = 52314 나는 지금 현재 기기가 ios인지 아닌지 판단해서 http://$ip/auth/login 이런 api를 호출하려고했다. $ip는 io.. 2022. 12. 15.
[Flutter] checkbox 크기 조절하기 문제 사이드 프로젝트를 하던중, 체크박스의 크기를 바꾸고싶었는데 아무리 찾아봐도 checkbox 속성에 크기를 바꿀수있는게 없었다.. checkbox 코드로 들어가보면 기본크기는 18.0 으로 설정되어있는거같다. 저 부분을 직접 수정하면 크기가 커지긴하는데, 그렇게 하고싶진않아서 다른방법을 찾아봤다. 해결 Transform.scale 을 사용하면된다 Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Transform.scale( scale: 0.6, child: Checkbox(value: true, onChanged: (value) {}), ), Checkbo.. 2022. 12. 13.
ios 시뮬레이터 다른 버전 실행하기 문제 ios 15.x 버전의 시뮬레이터를 실행해야되는 일이 생김 현재는 16.x 버전만 시뮬레이터가 생성되어있는 상태 해결 Xcode 실행 Xcode > Settings > Platforms > 왼쪽아래 + 버튼 > ios 원하는 버전 선택 > Download & Install 시뮬레이터 실행후 File > Open Simulator > 원하는 OS버전 + Device 실행 2022. 12. 7.
ios 16 천지인 키보드(10 key) 입력 이상하게되는 문제 (해결X) 문제 얼마전 어떤 유저가 한글 입력이 이상하게 된다고 문의를했다. 파악결과 아이폰 + 천지인 키보드를 쓰시는 분이었다. 대형 이라고 입력하면 대ㅎㅎ형 이런식으로 나오는 버그였다. 해결못함 찾아보니 flutter 깃헙 이슈에 완전히 동일한 증상의 글이 있었다. 쭉 읽어보니 ios 15.x 버전에서는 문제없었는데 16 이상에서 발생한다고한다. ios 실기기가없어서 시뮬레이터로 15.5버전과 16.1버전을 비교해봤는데 실제로 15.5 에서는 이런 문제가 발생하지않는다. 일단 당장 내수준에서는 어떻게 해결해야될지 감이안와서 기다리는수밖에 없을거같다.. 올해 9월26일 글인데 3개월이 다돼가는 지금까지 해결이 안된거보면 뒷전으로 밀린듯..? 8일전에 올라온 댓글을 보면 조만간 업데이트로 해결될거같기도하다.. 2022. 12. 7.
Could not build the application for the simulator 해결하기 문제 Swift Compiler Error (Xcode): Cannot find 'FlutterErrorNotImplemented' in scope ~~~ 파일 경로들 ~~~~ Could not build the application for the simulator Error launching application on iPhone 14 Pro Max. 손놓은지 반년은 훨씬 넘은 Flutter 앱을 다시 유지보수해야되는 상황이생겼다. 안드로이드는 어떻게든 됐는데, ios는 자꾸 위 에러가 발생하면서 빌드가안됐다. 해결 프로젝트 루트 폴더에서 차례대로 실행 rm ios/Podfile flutter pub upgrade flutter pub get cd ios pod update cd .. flutter c.. 2022. 12. 6.
PlatformException (PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)) 문제 PlatformException (PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)) firebase auth를 이용해서 로그인을 구현하는도중 발생한 에러 해결 대부분은 SHA 인증서 지문을 추가하면 해결된다 flutter 프로젝트 루트폴더에서 아래 명령어로 생성할수있다 맥북기준 keytool -list -v \ -alias androiddebugkey -keystore ~/.android/debug.keystore 비밀번호는 android 윈도우용 명령어나 자세한 내용은 아래링크에서 볼수있다 https://developers.google.com/android/guides.. 2022. 8. 4.
Failed to launch iOS Simulator: Error: Emulator didn't connect within 60 seconds 문제 Failed to launch iOS Simulator: Error: Emulator didn't connect within 60 seconds flutter 앱 개발중 ios Simulator로 앱을 실행하려고했는데 에러가 떴다. 해결 시뮬레이터 우클릭 > 종료 > 재실행 하면 된다 2022. 7. 17.