본문 바로가기
728x90

개발/Flutter225

flutter future 병렬처리 future를 실행하다보면 병렬처리를 해줘야할 때가 있다. 예를 들어 //await getFollowers(); //await getFollowings(); progressing= false; setState(() {}); 해당구문처럼 실행하게 되면 getfollower를 모두 실행 후 getfollowing를 모두 실행 후 setstate를 하게 되어 시간이 낭비 된다. 다음과 같이 해결해보면 좋을 것 같다. void loadData() async{ progressing= true; setState(() {}); await Future.wait([getFollowings(), getFollowers()]); //await getFollowers(); //await getFollowings(); prog.. 2022. 5. 19.
Flutter 에서 거리 내에 있는 데이터 가져오기 본인 같은 경우 Firebase 를 쓰다보니.. GeoFire로 가져오면 좋겠다고 생각했다. 그런데 이게 문제점이 발생한다 -> GeoFire -> within 으로 5km 이내, 10km 이내 는 가져올 수 있음 그러나 ordering을 해서 가까운 20개 가져오기, 가까운 40개 가져오기는 불가능한 것 같다. 그래서 algolia로 우선 진행해보기로 했다! 2022. 4. 28.
알고리아 Managing Results(3-34) https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#handling-item-variations Grouping results | Algolia Learn about combining, consolidating, aggregating, deduplicating records using Algolia's Distinct feature. www.algolia.com Grouping Results Grouping Records Why? Grouping records usually refers to the process of combining multiple records into a single result, or conso.. 2022. 4. 20.
pod install chain으로 묶여서 안될 때 https://stackoverflow.com/questions/56055142/cocoapods-could-not-find-compatible-versions-for-pod-firebase-coreonly CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" I've update my flutter package to the last versions and now IOS doesn't work anymore. When I try to update the pods it's shows this error: [!] CocoaPods could not find compatible versions for... stackoverflow... 2022. 4. 9.
728x90