목록Flutter (150)
seong
Codex Cli를 가끔씩 쓰는데 dart-mcp가 새로 나왔다고 해서 찾아보니, codex에서 쓰는 자세한 설명이 없어서 직접 써보기로 했다. Dart-MCP를 쓰기 위해서 필요한 것- Dart 3.9 버전 이상 ( 마음 편하게 현재 Flutter stable 버전인 3.35.4를 쓰는 중이다. ) 1. homebrew 명령어로 codex 설치 homebrew install codex2. config.tomal 파일에 dart-mcp 작성경로 : /Users/my/.codexcd ~/.codex // config.toml이 있는 경로로 이동,vi config.toml // config.toml 파일 열기 // 아래 블럭을 추가 하면 된다.[mcp_servers.dart-mcp]command = "da..
최근 IDE를 AndroidStudio 에서 WindSurf로 갈아탔고,원래 dp를 쓰면 debugPrint("");를 빠르게 생성 해줘서 자주 사용을 했었지만, AndroidStudio에서 Windsurf로 갈아타면서 설정이 없어졌다.1. Command + shift + p 누르고, snippet 검색 -> Configure Snippets 선택2. dart.json 선택3. "ld" 를 입력하면 Logger().d("");가 나오고게 하는 설정 코드{ "Logger Debug": { "prefix": "ld", "body": [ "Logger().d(\"$1\");" // $1은 입력 후 커서의 위치 ], "description": "Insert Logger().d()..
FCM Test앱을 만들고 release환경에서도 테스트를 마친 후 App Store에 배포가 아닌 내부 테스트 용으로 Firebase App Distribution으로 배포를 했다. 여기서 App Distribution으로 배포 했을때 푸시 메세지가 안오는 이슈가 생겼다... 현재 상황 - 앱 내에서 FCM 토큰은 잘 가져오는걸 확인- Apple Develop에서 인증키(p8)와 Profile까지 모두 잘 연결이 되어 있다고 나온다. 근데 도대체 왜 안오니... 시도 해본 것들1. Apple 인증서 재발급2. 기존에는 개발용 Profile만 있어서 배포용 Profile을 다시 생성3. ipa 파일에서 아래 코드가 있는지, 만약 development 라면 배포용 profile 다시 생성 해야함.1. u..
에러 코드 photo_manager 라이브러리가 jvm을 1.8을 타겟으로 하지만, 현재 나의 jvm은 17이라고 맞춰달라고 한다.Execution failed for task ':photo_manager:compileReleaseKotlin'.> 'compileReleaseJavaWithJavac' task (current target is 1.8) and 'compileReleaseKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.Consider using JVM toolchain: 원인나의 jvm 상태 java { toolchain { ..
초기 셋팅Google Map을 사용하려면 API Key를 발급 하고, 추가 필요Google Map API Key 발급 링크https://cloud.google.com/maps-platform/ Google Maps Platform - Location and Mapping SolutionsCreate real world and real time experiences for your customers with dynamic maps, routes & places APIs from Google Maps Platform’s location solutions.mapsplatform.google.com Get Started 클릭 Country 서울로 해주고 나머지 동의 후 넘어가준다. 우편 번호를 찾으라고 하는데 ..
Flutter는 기본적으로 단일 스레드(UI Thread)방식으로 동작하기 때문에 Backgroud, Foreground 작업을 하기 위해선 다른 Thread 사용 해주어야한다. Foreground도 결국 코드를 보면 Port를 열어서 UI스레드와 통신을 하는 방식이다.그래서 Port를 초기화 시켜주어야 하는데, 이걸 라이브러리에서 initCommunicationPort 함수로 편하게 할 수있다.1. Main함수에서 데이터 송수신 하기 위해 Port를 초기화 // 1. Main에서 Foreground와 통신이 가능한 Port 초기화 main() { WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized(); Flutter..
https://pub.dev/packages/flutter_staggered_animations flutter_staggered_animations | Flutter packageEasily add staggered animations to your ListView, GridView, Column and Row children as shown in Material Design guidelinespub.dev적용 할 애니메이션 최초 빌드 시 ListView, 버튼 클릭 할 때 마다 GridView ListView 각 애니메이션이 바뀌게.적용 하면서 알게 된 사항 - 위젯이 빌드 시 처음 렌더링 될 때만 애니메이션이 적용 된다, 즉 + 버튼을 눌러 ListView와 GridView를 전환할 때 애니메이션..
발생한 에러Writing result bundle at path: /var/folders/_y/wm04fckd03z_b6prg9phrfq00000gn/T/flutter_tools.RnkvNF/flutter_ios_build_temp_dir1VI1tl/temporary_xcresult_bundle /Users/ihyeonseong/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Classes/Launcher.swift:20:1: error: type 'UIApplication' does not conform to protocol 'Launcher' extension UIApplication: Launcher {} ^ UIKit.UI..