본문 바로가기
728x90

전체 글565

flutter freezes nested class toJson 오류 현상 제거 freezed로 만든 classmodel을 freezed로 만든 class model안에 넣으면, 실제로 fromjson으로 불러 올 때 문제가 발생하는 것이다! https://github.com/rrousselGit/freezed/issues/86 Nested Freezed class not converted TO JSON · Issue #86 · rrousselGit/freezed 👋 Given two freezed classes where one is "nested" in the other. import 'package:freezed_annotation/freezed_annotation.dart'; part 'contrived_example.g.dart'; part 'con... github.com.. 2022. 8. 26.
math log 사용하기 flutter log 검색하면 동의어 로그에 대한 설명이 많이 나온다. math 로 로그를 표현하기 위해서 다음과 같이 설정해보았다. log 는 식당에 포인트를 줄 때, 별점과 작성자 수를 조합하여 적절하게 ordering 하기 위해서 사용한다. 하부 log에 몇을 쓸 지는 좀 고민해봐야할 것 같다. https://stackoverflow.com/questions/71550765/how-to-implement-log-base-2-in-flutter How to implement Log base 2 in flutter? How can I find Log2(x) in flutter? I didn't found the match function in flutter math package Note: Log ba.. 2022. 8. 23.
list에 있는 값들 모두 합치기 [1,2,3,4,5,6] 이걸 다 합치면 몇이 될까? for 를 쓰면 쉽게 되겠지 코드가 너무 길 것 같아서 줄일 수 있는 방법을 찾아보았다. https://stackoverflow.com/questions/10405348/what-is-the-cleanest-way-to-get-the-sum-of-numbers-in-a-collection-list-in-dart What is the cleanest way to get the sum of numbers in a collection/list in Dart? I don't like using an indexed array for no reason other than I think it looks ugly. Is there a clean way to sum .. 2022. 8. 23.
firebase function으로 puppeteer 사용하기 firebase function을 사용하면서 크롤링을 사용해야하는 경우가 종종 있다. 그런데 문제는 이 친구가.. memory limit exceed 로 작동을 하지 않는다는 것이었다. 그러나 나의 구세주 파베방장님은 답을 알려주셨다. firebase function memory를 늘려주면 되는 것이었다. 찾아보니 firebase doc 안에 그 기능이 있었다! 나는 바로 적용해주었다. https://firebase.google.com/docs/functions/manage-functions?hl=ko#set_timeout_and_memory_allocation 함수 관리 | Firebase용 Cloud Functions 의견 보내기 함수 관리 Firebase CLI 명령어를 사용하거나 함수 소스 코드에.. 2022. 8. 22.
728x90