Mobile

    [Google Maps API, Flutter] Google Maps(Places) API에서 response 언어 한국어로 설정하기

    http (REST API) 관련이기 때문에 다른 프로젝트에서도 동일하게 적용 가능합니다. Flutter 프로젝트를 진행하다, Google Places API를 이용해 텍스트로 장소를 검색하는 기능을 만드는데 response JSON에서 장소 이름이 영어로 나와서 화면에 띄워주기엔 좀 불편했다. 그래서 한국어로 response를 받을 수 있는 방법이 있는 지 찾아보았다. 우선, 기존에는 검색어 텍스트를 이용해 get요청으로 장소 정보를 받아오고 있었다. String url = "https://maps.googleapis.com/maps/api/place/textsearch/json?query="; String key = dotenv.env['GOOGLE_PLACES_API_2'] ?? ""..

    [Flutter] Container 안에서 이미지 사이즈 원하는대로 조정하기

    Container 안에 이미지를 넣어서 흰 배경에, 이미지가 작게 들어가도록 하고 싶었다. 그런데 자꾸 Container의 child인 이미지가 Container의 width, height를 따라가는 것이.. 문제였음(container를 꽉 채움) Container( width: 130, height: 130, decoration: BoxDecoration( color: Colors.blue,// 시각적으로 잘 보이도록 파란색으로 바꿈 borderRadius: BorderRadius.circular(10), ), child: Image( image: AssetImage("assets/img/dummyPikachu.png"), width: 100, height: 100, ), ), 이런 식으로 나온다. 이..

    [Flutter, Firebase] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": 에러 (M1 Mac 환경)

    오류 메시지 firebase_core: Using Firebase SDK version '9.4.0' defined in 'firebase_core' [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.21.1, which depends on Firebase/CoreOnly (= 9.4.0) None of your spec sources contain a spec satisfying the dependency: `Firebase/Co..

    [Flutter, Firebase] Pub installs executables into $HOME/.pub-cache/bin 에러 (Firebase CLI)

    오류 메시지 Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.): export PATH="$PATH":"$HOME/.pub-cache/bin" 문제 상황 https://firebase.google.com/docs/flutter/setup?hl=ko&platform=ios Flutter 앱에 Firebase 추가 Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기 의견 보내기 Flutter 앱에 ..

    [Flutter, Figma] Figma 와이어프레임 Flutter 화면으로 변환하기 - Figma to Flutter

    Figma wireframe으로 화면 디자인 후, 그대로 flutter 코드로 편하게 옮기고 싶어 찾아보고 정리했다. 그런데 이 방법은, 한 페이지 전체보다는 디자인된 버튼이나, 구성 요소를 옮겨오고 싶을 때 쓰는 것이 더 적절할 것 같다. 1. 와이어프레임 제작 & Component 생성 Figma에서 작업 후, Flutter 화면으로 만들고 싶은 페이지를 선택해서 Ctrl+Alt+K 또는 우클릭 후 Create Component를 눌러 Component를 생성해 준다. 컴포넌트 생성을 안 하면 나중에 안 뜸. 2. Figma Personal Access Token 생성 (개인 API Key) 먼저, 피그마에 로그인 후 개인 화면에서 우측 상단 프로필을 눌러 Setting에 들어간다. Settings에..

    [Flutter] cmdline-tools component is missing 오류

    오류 메시지 [!] Android toolchain - develop for Android devices (Android SDK version 33.0.0) X cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. 해결 안드로이드 SDK 환경 변수 추가가 안되어서 일어난 듯. 안드로이드 스튜디오 - SDK 매니저 - Android SDK 로 들어가 SDK Tools 에서 Android SDK Command-line Tools(latest) 를 설치. Android S..

    [안드로이드 스튜디오] - 원하는 가상 기기 에뮬레이터(Virtual Device) 추가하기

    1. 삼성 개발자 사이트 접속 https://developer.samsung.com/galaxy-emulator-skin/guide.html 으로 접속하여 자신이 원하는 핸드폰을 검색. 2. 핸드폰 스킨 다운로드 DOWNLOAD SKIN을 눌러 원하는 핸드폰 스킨을 다운로드. 나는 내가 쓰는 폰이 A52라서 이거 다운로드 함. 다운받기 전에 삼성 계정 로그인 해야되고, 약관 동의 해야 한다. 알아서 잘 하세요 3. 기기 추가하기 먼저 안드로이드 스튜디오 폴더에서 Android Studio\plugins\android\resources\device-art-resources 로 들어가 다운받은 스킨을 집어넣기. 이후 안드로이드 스튜디오 실행 안드로이드 스튜디오에서 Device Manager - Create ..

    [Xcode / Cocoapods] M1 Mac 환경에서 pod init 에러 - (RuntimeError - [Xcodeproj] Unknown object version.)

    Error Message RuntimeError - [Xcodeproj] Unknown object version. git에서 레포를 clone 후에, podfile 관련 모두 삭제하고 pod init 했는데 실행 오류 났다. 구글링해서 cocoapods 재설치로 해결되었다는 내용이 있어 재설치해보니 해결. homebrew로 cocoapods를 설치해서 생긴 오류인가? 라고 스을쩍 의심해본다. 아님 말고. 1. cocoapods uninstall homebrew로 cocoapods를 설치해주었기에, 다시 homebrew로 삭제해주었다. $ brew uninstall cocoapods 2. cocoapods re-install Ruby의 Library package 관리 도구인 gem을 이용해 다시 설치해..