본문 바로가기
728x90

전체 글565

[번역] flutter_local_notifications https://pub.dev/packages/flutter_local_notifications flutter_local_notifications | Flutter Package A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. pub.dev 너무 길어서 local notificiation 공부하는 것을 미뤄왔었는데 local notification을 통해서 보여주는 화면을 제어하고 싶은 마음(중요도가 낮은 곳에서는 창을 띄우지 않기)에, 공부해보게 되었다. 그럼 시작해보자! Caveats an.. 2022. 12. 8.
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.
728x90