본문 바로가기
728x90

전체 글574

flutter library 업데이트 -> PR 적용하기 flutter를 업데이트 하다보니, https://pub.dev/packages/intent intent | Flutter Package A simple to use Flutter plugin to deal with Android Intents - your one-stop-solution for Android Intents. pub.dev 는 너무 구형이라, nullsafety가 적용되지 않아. 최신 dart에서 사용할 수가 없었다 . 그렇다고 다른 library인 https://pub.dev/packages/android_intent_plus android_intent_plus | Flutter Package Flutter plugin for launching Android Intents. Not su.. 2022. 11. 22.
flutter super initializer 아니.. 이게 원래 안 되었었는데. 된다고 한다 이제.. https://codewithandrea.com/tips/dart-2.17-super-initializers/ How to Use Super Initializers in Dart 2.17 Since Dart 2.17, you can initialize parameters of the super class with a new shorthand syntax. Here's how. codewithandrea.com 그래서 lint를 홈페이지에 있는 것처럼 적용해봤는데 확인 해보고 적어야겠다. 2022. 11. 22.
성공을 위한 영상 1 좋은 영상인 것 같아서.. 저장해놓아야지 https://www.youtube.com/watch?v=DTNkkRh3K9M 2022. 11. 20.
freezed 에서 custom method, add method 새로운 함수 만들기 나는 freezed Model에 해당과 같이 넣고 싶다. String toNotiString() { List result = []; if (xp != null) { result.add('xp:$xp'); } if (gold != null) { result.add('gold:$gold'); } if (diamond != null) { result.add('diamond:$diamond'); } return result.join(', '); } 그런데 오류가 나지.. 해결책은 doc에 있었다. https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models GitHub - rrousselGit/freezed: Code genera.. 2022. 11. 20.
728x90