본문 바로가기
728x90

전체 글565

Rx null 사용 하는 법, RxList, RxSet Rx는 null 을 사용하지 말라는 권고가 있다. 그런데 null 을 사용해야하면 어떻게 하느냐 Rxn을 사용해보자! final Rxn _moimModel = Rxn(); MoimModel? get moimModel => _moimModel.value; 이렇게 하면 된다. 리스트 사용하는 방법, Set을 사용하는 방법 final RxList _placeList = RxList(); List get placeList => _placeList; final RxSet _collectionModelOnShelf = RxSet(); Set get collectionModelOnShelf => _collectionModelOnShelf; 2022. 12. 29.
앱이 잠김 화면에서도 켜질 때, local notification에서 해준 설정이 있다. android:showWhenLocked="true" android:turnScreenOn="true" 해당 설정 때문에 폰이 잠긴상태에서도 앱이 켜지게 되었다. 이러한 문제를 방지하기 위해서 지웠다! 2022. 12. 29.
foursquare 점령! 본인은 구글로 place를 하고 있었는데 좀 단점이 있다. 일단 식당 카테고리가 안 나온다(이게 제일 큼) detail 정보를 받아와도 그렇게 detail하지 않다. 그래서 일단 foursquare로 한 번 받아와보려고 한다. 2022. 12. 28.
firebase function list에 list 더하기 https://stackoverflow.com/questions/52101685/firestore-failed-to-merge-array-of-items-to-another-array-using-fieldvalue-array Firestore Failed to merge array of items to another array using FieldValue.arrayUnion() I have a cloud function that invoked when a certain event happened. In the function i will get an array of string for example let h:string[] = ["foo","bar","baz"] something similar to .. 2022. 12. 28.
728x90