Flutter 60

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

Firebase Functions with Flutter

Firebase 에 서버처럼 백엔드 코드를 실행할 수 있는 서버리스 프레임워크 https://firebase.google.com/docs/functions/get-started 시작하기: 첫 번째 함수 작성, 테스트, 배포 | Firebase Documentation 의견 보내기 시작하기: 첫 번째 함수 작성, 테스트, 배포 Cloud Functions를 시작하려면 이 튜토리얼을 따라해 보세요. 이 튜토리얼은 필수 설정 작업부터 시작해 다음과 같은 관련 함수 두 개를 만들 firebase.google.com Firebase Functions 와 앱 통신 테스트 코드 (동작 확인 코드 / 2022.02.04) https://codewithandrea.com/articles/flutter-tutorial-f..

Dev/Firebase 2022.02.04

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

Flutter - Calendar / SfCalendar / Syncfusion / 캘린더

Flutter 에도 많은 라이브러리들이 존재한다. 그리고 잘 만들어져 있고 커스텀하기 좋은 Calendar 라이브러리가 Syncfusion 에서 만든 Calendar 입니다. - Syncfusion Flutter Calendar 라이브러리 링크 ✔️ 데이터 리로딩 이슈 SfCalendar 를 사용할때, 데이터를 셋팅해주는 부분이 있다. 그런데 여기서 나는 API 에서 데이터를 다시 받아와서 캘린더에 뿌려줘야하는데 종종 데이터를 제대로 뿌려주지 못하는 이슈가 발생했는데, API 에서는 데이터를 잘 내려받지만 캘린더에 표시가 됐다가 안됐다가를 반복해서 이래저래 시도해보다가 검색해서 데이터를 다시 리로딩하는 방법을 찾고 수정했습니다. - 리로딩 이슈 해결 방법 링크 ❗ 처음 시도한 방식 1. 아래와 같이 UI..

Dev/Flutter 2022.01.07

Flutter - Divider(구분선)

Flutter 에서 구분선을 구현하는 방법 1. 기본적인 가로 구분선 구현 Divider(thickness: 1, height: 1, color: myColor) Divider.dart 생성자 const Divider({ Key? key, this.height, this.thickness, this.indent, this.endIndent, this.color, }) 2. 세로 구분선 VerticalDivider(thickness: 1, width: 1, color: color) VerticalDivider.dart 생성자 const VerticalDivider({ Key? key, this.width, this.thickness, this.indent, this.endIndent, this.color,..

Dev/Flutter 2021.12.29

Flutter - TextButton 기본 레이아웃 스타일 없애는 방법 2가지

1. Style 로 없애는 방법 TextButton( onPressed: (){}, child: Text('버튼'), style: TextButton.styleFrom( minimumSize: Size.zero, padding: EdgeInsets.zero, tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), ) https://stackoverflow.com/a/69382707/3897810 2. InkWell 로 감싸는 방법 InkWell( onTap: () { // Text 클릭시 반응하는 곳 }, child: const Padding( padding: EdgeInsets.all(5.0), child: Text('버튼'), ), ),

Dev/Flutter 2021.12.16