Dev/Flutter 63

Flutter Pub outdated

1. 업그레이드 가능한 패키지가 있는지 찾는다. $flutter pub outdated 2. 패키지들을 업그레이드 시켜준다. $flutter pub upgrade 3. 다시 확인해서 업그레이드 가능한 패키지들을 찾아보면 업그레이드 됐음을 알 수 있다. $flutter pub outdated Flutter 명령어 add pubspec.yaml에 의존성을 추가한다. cache Work with the Pub system cache. deps 패키지 의존성들을 출력한다. downgrade 플러터 프로젝트의 패키지들을 다운그레이드한다. get 플러터 프로젝트로 패키지들을 가져온다. global Work with Pub global packages. login Log into pub.dev.. logout Log..

Dev/Flutter 2022.05.10

Flutter(ios) - 릴리즈(Release) 모드

이슈 Debug 모드에서는 문제가 생기지 API 연결이 Release 모드 에서 연결이 되지 않는 문제가 발생했습니다. 얼마전까지만해도 Release 모드에서도 문제가 되지 않았었는데 난감했다. 참고한 글에는 Local Network 권한 이슈라고 하는데... 참 이상한게 추가한 라이브러리도 없는데... 갑자기 해당 이슈가 발생했다는건데... 어디서 무엇이 어떻게 된건지... 아직 아리송하다. 에러 local network broadcast in apps need to be declared in the app's Info.plist 해결방법 NSBonjourServices _dartobservatory._tcp 공식문서 https://docs.flutter.dev/development/add-to-app..

Dev/Flutter 2022.04.28

Flutter 다국어 지원 - Localization

Flutter 다국어 지원, Flutter Localization 등으로 검색하면 많은 자료가 나옵니다. 참고자료 1. 기본적으로 참고해야하는 자료는 공식 문서 - https://docs.flutter.dev/development/accessibility-and-localization/internationalization 하지만 영어가 익숙하지 않다보니 공식문서만 보면 이해가 잘 되지 않아서 다른 한글 자료 및 영상 자료를 추가로 참고. 2. 유튜브 영상 - https://youtu.be/Zw4KoorVxgg 상세하게 순서 등 다 나오다보니 감사하게 공식 문서와 함께 참고. 다국어 지원 절차 1. 라이브러리 추가 - pubspec.yaml 파일에 추가 a. dependencies 에 flutter_loc..

Dev/Flutter 2022.04.22

Flutter iOS 개발시 주의할 사항

Simulator 사용 (에뮬레이터) Flutter 로 iOS 개발할때 Simulator 에 빌드해서 앱을 설치하고 확인합니다. iOS Simulator 는 macOS 에서만 사용할 수 있는 가상 디바이스(Xcode 필요) 빌드모드 설명 Flutter의 빌드 모드 기본적으로는 디버그(Debug) 모드 로 빌드를 진행하지만, 외부 테스트 및 앱스토어 등록을 위해서 프로파일(Profile) 혹은 릴리즈(Release) 모드로 빌드를 진행합니다. 디버그 모드로 빌드한 경우에는 앱이 Simualtor 에 설치가 가능하지만 프로파일, 릴리즈 모드로 빌드한 경우에는 Simulator 에 설치가 불가능합니다. 즉, 프로파일, 릴리즈 버전으로 빌드한 경우에는 실제 디바이스를 연결해서 앱을 설치해야 합니다. 빌드모드 S..

Dev/Flutter 2022.04.14

Flutter - Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.

내용 : Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. 해결책 1. Go to /ios folder inside your Project. 2. Delete Podfile.lock (YourPoject/ios/Podfile.lock) 3. Here you have to do it according to the chip of your Mac, here I have given for both. thanks @Kamal Panara for identified this For Intel chip users Run pod install --repo-update (Make sure your cd into the iOS d..

Dev/Flutter 2022.02.08

Flutter - iOS 앱 업로드 for TestFlight

Flutter 에서 iOS 앱 업로드를 하는 방법을 단계별로 설명합니다. 1. Xcode 를 동작한다. 2. 최상단 메뉴바에서 Product -> Archive 를 눌러준다 여기서 Archive 가 누를 수 없는 상태(비활성화)일 수도 있다. 그때는 Runner를 하는 대상이 에뮬레이터가 아니고 실제 디바이스를 대상으로 한지 체크해봐야 합니다. 참고 3. 빌드가 끝나면 업로드 작업을 할 수 있는 화면이 보인다. 그리고최신 빌드 버전이 상단에 보일테니 우측에 Distribute App 을 누른다. 4. 쭉쭉 진행한다.

Dev/Flutter 2022.01.12

Flutter - Json 데이터 사용하는 방법

Flutter 에서 Json 데이터를 파싱해서 사용하기 위해서는 파싱할 수 있도록 설정 작업을 해야한다. 1. pubspec.yaml 에 라이브러리를 추가한다. 라이브러리 추가 방버 : 링크 참조 dependencies: # Your other regular dependencies here json_annotation: dev_dependencies: # Your other dev_dependencies here build_runner: json_serializable: json_serializable 링크 2. Json 을 받을 수 있는 Object 클래스를 만든다. @JsonSerializable() class User { User(this.name, this.email); String name; S..

Dev/Flutter 2022.01.11