Networking & https

Flutter – StreamBuilder 邏輯與應用情境

Widget 邏輯 – 就記住一句話 The StreamBuilder widget connects to a Stream and asks Flutter to rebuild every time it receives an event using the given builder() function.也就是說,每次收到新的 async 通知都會 rebuild 一次。(根據 builder function 行動。) 因此 只要有需要「即時性」更新畫面、有所反應,我們就會使用到 StreamBuilder。 小故事 和各位分享一個小故事,我曾聽聞 StreamBuilder 用在 Authentication。當下我思索了腦中 Authentication 的結構模樣,實在想不出為什麼身份驗證需要透過 StreamBuilder 這等即時性驗證的東西來完成。 透過 http request 也可以實現 Authentication 啊?只要存取 Client Session 就可以知道使用者是否為登入狀態。 …

Flutter – StreamBuilder 邏輯與應用情境 Read More »

2023/6/15 每日筆記

每日筆記 前言 今天有以下幾個主題: Networking & http JSON & serialization Networking & http 使用 http package Future is a core Dart class for working with async operations. A Future object represents a potential value or error that will be available at some time in the future. The http.Response class contains the data received from a successful http call.  “If …

2023/6/15 每日筆記 Read More »

2023/6/16 每日筆記

每日筆記 之後應該不太會在這裡寫詳細的 Flutter 學習內容了,就紀錄一些自己讀過的東西,又或是當隨手筆記來做。 前言 今天有以下幾個主題: Flutter Networking & http & JSON & background process  (Flutter) Application Development Standard Operation Procedure(SOP) Flutter Error handling CTO、CIO? Flutter Networking & http & JSON & background process [1] Flutter – Networking – Fetch data from the internet[2] Flutter – Networking – Make authenticated requests[3] Flutter – Networking – …

2023/6/16 每日筆記 Read More »