본문 바로가기
728x90

전체 글584

typedef 에서 generic function 사용하기 typedef 는 callback 받을 때 도움이 되는 연산자? 같은 것이다. Generic으로 받으면 여러가지 class를 넣지 않고 필요할 때 class 형태를 넣을 수 있을 것 같아서 자료를 찾아보았다. https://stackoverflow.com/questions/51092028/how-to-typedef-a-generic-function How to typedef a generic function? I have a generic static method that looks like this: static build() { return (GenericClass param) => MyClass(param); } So far I have tried: typedef F = MyClass&... sta.. 2022. 12. 8.
get controller에서 get.back(); 오류 생길 때 error Future closeMoimDetailPage() async { await Future.microtask(() => null); Get.back(); Get.delete(); showToast('해당 모임은 존재하지 않습니다'); } microtask로 기다린 후에 Get.back()과 controller임의 삭제하면 오류가 나지 않고 종료 된다. 2022. 12. 7.
flutter 에서 인터넷 문자 -> String 으로 바꾸기 https://stackoverflow.com/questions/69264655/how-to-convert-utf8-to-text-in-dart How to convert utf8 to text in dart I want to convert special character utf8 value to it's text. For example, if input is %20, the output will be whitespace if input is %23, the output will be # stackoverflow.com Uri.decodeComponent(utf8String); 이렇게 하면 된다.. 2022. 12. 7.
flutter release version 에서 스크린샷만 보일 때 https://stackoverflow.com/questions/71198034/flutter-android-app-freezes-on-the-splash-screen-in-release-mode flutter android app freezes on the splash screen in release mode I have a problem using the storage to persist the user login data . the scenario like that : after login , I clear the app and try to reopen it again , sometimes it open and sometimes it's freezes ... stackoverflow.com 검색어 .. 2022. 12. 7.
728x90