공부방/Android2023. 10. 4. 11:22com.android.manifmerger.ManifestMerger2

이거는 그냥 Flutter 빌드중 에러가나서 메모 해두는거에요 이슈 내용 : FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > com.android.manifmerger.ManifestMerger2$MergeFailureException: Error parsing /Users/xxxx/Documents/xxx/.android/app/src/main/AndroidManifest.xml 해결 : AndroidManifest.xml 파일에서 아래 코드를 추가해 주면 됩니다. xmlns:tools="http://schemas.android.com/..

Flutter web localhost 실행 서버 외부에서 접근하는 방법
공부방/Flutter2023. 9. 22. 14:59Flutter web localhost 실행 서버 외부에서 접근하는 방법

Flutter web 서버를 실행하고, 실행된 서버를 외부에서 접근하려고 할때 아마 잘 동작을 안할거에요. 예를들어 노트북에서 Flutter web 서버 실행 -> 모바일폰에서 해당 아이피로 접속 시도 이런식으로 해도 일반적인 설정 없이 접근은 불가능해요. 그럼 이제 방법을 알아볼게요 1. 터미널을 열고 flutter 폴더에서 아래 명령어를 입력해주세요. flutter run -d web-server --web-port 8080 --web-hostname 0.0.0.0 그럼 아래처럼 콘솔 화면이 나타날거에요.

공부방/Flutter2023. 9. 1. 14:38flutter SystemUiMode 옵션 정리

//풀스크린 x SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); //화면 회전 없는 풀스크린 SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); //화면 회전 가능한 풀스크린 SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky); //하단 navigationbar remove SystemChrome.setEnabledSystemUIMode( SystemUiMode.manual, overlays: [ SystemUiOverlay.top, ], );

공부방/Flutter2023. 8. 30. 11:57Flutter module MissingPlugin 주의사항

Flutter module을 적용할때 주의가 필요한 부분이 있어서 간단히 메모해요. 모듈이 정상적으로 각 OS에 적용이 됬음에도 PlatformException 이 나타난다면, 모듈이 로드 되는 시점에 특정 라이브러리가 로드되면 안되는 상황인지도 파악이 필요합니다. 저같은 경우는 permission 라이브러리가 initState 에서 호출이 되었는데, flutter engine이 로드 되는 시점에 호출이 되어, 실제 화면이 보이지 않는 상황에서 호출 되다 보니 아래와 같은 오류가 나왔어요. PlatformException(PermissionHandler.PermissionManager, Unable to detect current Android Activity., null, null) 따라서 실제 flu..

공부방/Flutter2023. 8. 29. 17:32Flutter module local notification foreground push in ios not working

Flutter module을 가지고 이것 저것 테스트 하는데 이상한 현상이 있어서 기록해요. Flutter module에서 Local notification 기능을 넣고, 그 상태로 iOS에서 로컬 푸시를 보내면 Foreground background 아주 잘 오는데 이상하게 이 module을 다시 native iOS에 넣어서 테스트를 하면 foreground 에서는 푸시가 오지 않는 현상이 있습니다. 이것을 해결하기위해 아래 처럼 코드를 수정을 하면 정상 동작을 확인할수 있습니다. // // moduletestApp.swift // moduletest import SwiftUI import Flutter // The following library connects plugins with iOS plat..

Android 앱 이전시 유의 사항
공부방/Android2023. 8. 25. 16:42Android 앱 이전시 유의 사항

안드로이드 앱 이전시 새 개발자 계정 항목 이있습니다. 해당 항목은 개발자 이메일을 입력 하는게 아닌 구글 플레이 콘솔 (https://play.google.com/console)의 계정 세부정보 -> 개발자 계정 ID 를 입력하시면 됩니다.

Flutter module 네이티브(Android, iOS) import 방법
공부방/Flutter2023. 8. 25. 16:24Flutter module 네이티브(Android, iOS) import 방법

Flutter 로 공통 화면이나 기능을 구현후 각각의 Native(Android, iOS )에서 동일하게 사용이 가능해요. 기존 네이티브 앱이 개발된 상태에서 Flutter로 만든 기능을 추가하고 싶다면, 한번 따라해 보세요 ! Flutter로 모듈을 생성 후 native(Android, iOS)에서 플러터 모듈을 사용 하는 방법에 대해 알아볼게요. 1. 먼저 Flutter module을 생성 합니다. Flutter module은 두가지 방법으로 생성이 가능 합니다. Command 생성 방법 flutter create -t module --org com.example flutter_ble_module Android Studio -> new -> flutter project 생성시 Project type ..

Execution failed for task ':app:mapDebugSourceSetPaths'
공부방/Flutter2023. 8. 14. 14:45Execution failed for task ':app:mapDebugSourceSetPaths'

Flutter에 Firebase 설정하고 나니 에러가 발생하기 시작한다. 에러 내용은 아래와 같다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mapDebugSourceSetPaths'. > Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths' > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'. > Querying the mapped value..

Flutter shorebird code push for android
공부방/Flutter2023. 8. 10. 14:50Flutter shorebird code push for android

https://console.shorebird.dev/ Shorebird Console Code Push for Flutter. console.shorebird.dev 이제 iOS 에서도 shorebird를 이용한 code push 가 가능 하다고 해서 본격적으로 도입에 앞서 사용방법을 알아보려고 해요. 1. shorebird cli 를 설치해보아요. MacOS/Linux curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash Windows Set-ExecutionPolicy RemoteSigned -scope CurrentUser # Needed to ..

공부방/Flutter2023. 7. 4. 17:50Flutter TextFormField 폰 번호 양식 자동 완성 코드

핸드폰 번호를 입력하면 자동으로 '-'를 입력해 주는 TextField Formatter를 만들어 보려구 해요. 회원가입이나 여러가지 이벤트 페이지 정보 작성 시 핸드폰 번호를 입력할 일이 있으면 쉽게 사용 가능해요. 물론 라이브러리를 사용해도 되긴 하지만 이정도는 그냥 코드로 만들어보아요. 아래코드로 얼마든지 다른 형식도 응용이 가능하니 유용하게 사용해 주세요. PhoneNumberTextInputFormatter.dart import 'package:flutter/services.dart'; class PhoneNumberTextInputFormatter extends TextInputFormatter { ///전체 번호 010-1234-5678 기준 final firstLength = 3; ///첫..

image