본문 바로가기
728x90

개발/Flutter225

stream cancel 하기 GetXcontroller에서 stream 걸어서 원하는 Firestore document를 감시하곤 한다. 그런데 해당 페이지를 벗어나게 되었을 때 stream을 풀어줘야. 원치 않는 firebase 서버 요청을 줄일 수 있다고 생각한다. 그래서 이번에는 stream을 cancel하는 방법을 알아보고자 한다. 아래와 같은 stackoverflow 답변을 참조하여 문제를 해결하였다. https://stackoverflow.com/questions/44450758/cancel-stream-ondata Cancel stream onData I have an event bus that handles all central events to my app. I have a special case where I ha.. 2022. 1. 23.
flutter scroll bottom으로 보내기 채팅 시스템을 구현할 때, 스크롤을 가장 아래로 두고 싶을 때가 있다. 어떻게 하면 편하게 구현할 지 검색했는데.. 역시 해답은 stackoverflow에 있었다! https://stackoverflow.com/questions/47916247/flutter-scroll-to-bottom-of-dynamic-listview Flutter scroll to bottom of Dynamic ListView I have looked and found several solutions but none seem to fit my configuration and need some assistance. I will put all my code here and see if anyone knows where to appl.. 2022. 1. 23.
플러터 firebase 강좌 추천 https://here4you.tistory.com/149 Flutter 강좌 시즌2 - 강좌 목록 강좌 목록 2019/07/22 - [Development/Flutter] - Flutter 강좌2 - Hello World 2019/07/22 - [Development/Flutter] - Flutter 강좌2 - 소스코드(위젯) 분할 2019/07/25 - [Development/Flutter] - Flutter 강좌2.. here4you.tistory.com 2019년에 무려 3년 전에 나온 강좌인데 이렇게 고급기술을 알려주다니! 나는 아직 한참 멀었나보다..ㅠㅠ 그래도 열심히 보면서 배워야겠다. 리스펙!! 2022. 1. 2.
Multi future builder 만들기 Future foo; Future bar; FutureBuilder( future: Future.wait([bar, foo]), builder: (context, AsyncSnapshot snapshot) { snapshot.data[0]; //bar snapshot.data[1]; //foo }, ); 2022. 1. 1.
728x90