본문 바로가기
반응형

프로그래밍/Flutter10

플러터] Podfile is out of date This can cause issues if your application depends on plugins that do not support iOS or macOS. 책을 보면서 플러터 공부 중인데, 책이 너무 오래되었나보다. 책 소스 다운 받아 flutter run을 하니, 오류가 나왔다. Podfile의 의존성이 오래되서 그런거라고 한다. Podfile안의 의존성에 버전이 명시되지 않았다면 다 지우고 다시 실행하면 괜찮아질 것 같다. 다음은 macbook 노트북에서 프로젝트 디렉토리로 이동한 후, 삭제 명령어를 날린 기록이다. (역시 인터넷 검색을 통해 찾음) % flutter clean % rm -Rf ios/Pods % rm -Rf ios/.symlinks % rm -Rf ios/Flutter.. 2023. 7. 25.
[Flutter] Unhandled Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized. 오호 내내, 2.x 버전 소스를 3.x SDK에 맞춰 수정하고 실행하니, 떡 하니 나타난 오류다. 쩝 검색을 해보니, 간단한 해결책이 있어 기록한다. WidgetsFlutterBinding.ensureInitialized(); 이 한 줄을 넣고 flutter run을 실행하니, 정상적으로 UI가 나왔다. void main() { WidgetsFlutterBinding.ensureInitialized(); AppSettings settings = AppSettings(); // Don't allow landscape mode SystemChrome.setPreferredOrientations( [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]).. 2023. 7. 21.
Flutter run key commands. Flutter run key commands. r Hot reload. 🔥🔥🔥 R Hot restart. h List all available interactive commands. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). 💪 Running with sound null safety 💪 오호~ 이런게 있었다니.. 커멘드창을 닫을려고 하니 보인다. ㅎ 2022. 9. 13.
플러터 첫 시작, 요란한? 오류를 만나다 : Error (Xcode): No profiles for 'com.example.counterApp' were found: 막연하게 flutter run을 외쳤더니, Error로 보답을 한다. ^____^ Could not build the precompiled application for the device. Error (Xcode): No profiles for 'com.example.counterApp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.counterApp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates.. 2022. 9. 13.
dart language 초간단 훑어보기 다트는 형식을 갖는 프로그래밍 언어라고 한다. 형식이라 함은 String name; 이와 같이 name변수는 String 형식이라는 것을 나타낸다. 그리고 항상 값 앞에 나타난다. int age; int greeting = 'hello'; 라고 하면 컴파일 오류가 발생한다. 복합 데이터 형식은 다음과 같이 나타낸다. List , Map 사이에 요소의 형식을 정의한다. List names; Swift에서 JSON형태의 서버 API결과를 받을 때 사용하는 Any와 비슷하다라고 이해하고있음. 다트의 주석은 일반적이다. 다트의 final, const, static 을 구분해보자. final 한 번만 할당할 수 있으며 클래스 수준에서 변수를 할당하기 전에 선언한다. 쉽게 말해 클래스의 생성자에서 할당하는 모든 변.. 2022. 9. 13.
플러터 SDK설치 후 PATH설정 및 doctor 실행 결과 화면 아직도 유닉스 PATH설정에 대해서는 좀 어렵?다. 적절한 폴더에서 압축을 해제한 뒤, 패스 설정후 flutter doctor를 실행해보았다. 아래 캡처 한 그림이다. 플러터 개발 준비가 끝났다는 이야기. 2022. 9. 13.
반응형