본문 바로가기
728x90

개발/Flutter225

index scroll library 지금 현재는 다른 library를 쓰고 있지만 이 것도 평이 꽤 좋다 https://pub.dev/packages/scroll_to_index scroll_to_index | Flutter Package Scroll to a specific child of any scrollable widget in Flutter pub.dev 2022. 7. 5.
Getx refresh() https://here4you.tistory.com/276 GetX를 이용할 때 값이 변경되지 않는 경우 GetX란 Flutter앱의 상태관리에 사용되는 패키지로 Provider와 유사한 기능을 제공한다. Provider에 비해 보다 가벼우며 더 강력하다고 하는데 기존의 Provider 대비 보다 다양한 기능을 제공하고 있다. 그 here4you.tistory.com GetX controller를 쓰면서 obs 객체들이 값이 변화하여도 UI가 변하지 않는 현상이 가끔 있었다. list.refresh()는 명시적으로 요청함으로써, 해당 값에 대한 UI가 변경 된다고 한다. 2022. 7. 1.
flutter model에서 원하는 argument만 뽑아서 처리하기 visible: Get.find().sharingMatjips.map((element) => element.matjipid).contains(matjipmodel.matjipid), indexof 로 해도 되긴하지만 tomap을 쓰면 좀 더 편하고 직관적이고 뭔가 다양한 것을 할 수 있다. 2022. 6. 26.
getX 반응형상태관리 initialize RxList _matjipModelList= [].obs; RxList get matjipModelList => _matjipModelList; Map _progressText = {}; //일단 광장에서 받는 걸로 해결하자 RxSet selectedMatjips = {}.obs; RxList, RxSet의 경우 지네릭으로 initiallize 가 안되어서 걱정이었는데 앞에 지네릭을 붙여주면 initialize가 되는 것을 확인했다!ㅠ_ㅠ 2022. 6. 25.
728x90