본문 바로가기
728x90

전체 글584

How to query flutter hive data ? List matjipList({String? queryText}) { if (_matjipBox == null) { logger.e('박스 생성 실패'); return []; } else { if (queryText == null) { return _matjipBox!.values.toList(); } else { Set resultSet = {}; resultSet.addAll(_matjipBox!.values.where((element) => element.description?.contains(queryText) ?? false)); resultSet.addAll(_matjipBox!.values.where((element) => element.name.contains(queryText))); re.. 2022. 12. 17.
dart 2차 정렬하기 (twice ordering) https://stackoverflow.com/questions/55920677/how-to-sort-a-list-based-on-two-values How to sort a list based on two values I have a list in which I want to sort based on two values date and the status like this: pollsList.sort((a, b) => b.active.compareTo(a.active)); pollsList.sort((a, b) { return b. stackoverflow.com pollsList.sort((a, b) { int cmp = b.actualStartDatetime.compareTo(a.actualStar.. 2022. 12. 16.
how to compare boolean value? This is simple algorithm for compare with boolean value! matjipList.sort((a, b) => (a.visited? 1:0).compareTo(b.visited? 1:0)); 2022. 12. 16.
naver login 이 안 될 때 (flutter) naver login 이 개인이 관리하는 library라서 안 될 수가 있다. 현재 버전에서, 1.7.0 => 1.6.0으로 downgrade할 경우 정상 작동하였다. https://pub.dev/packages/flutter_naver_login flutter_naver_login | Flutter Package A Flutter plugin for using the native Naver Login SDKs on Android and iOS. pub.dev 또 한가지는 APK를 구웠을 때 안 될 때가 있는데 네이버에서는 실제로 테스트 시에는 로그인이 안되었다가 출시하고 나면 로그인이 될 수 가 있다. 이점은 developer.naver.com 쪽에 확인 해보면 문구가 나와있다. debug상태에서도 테.. 2022. 12. 12.
728x90