Flutter 求教學

軟件
#1 小貓咪
17/10/18 10:32

我用哩個library

但query極都係loading嘅

#2 小貓咪
17/10/18 10:33

#3 3
17/10/18 10:38

冇學

佢個query係會自動行?定要人手踢佢屎眼先行?

#4 3
17/10/18 10:39

同埋有冇得睇log?如果有android studio就可以睇下有冇logcat有冇嘢炒

#5 小貓咪
17/10/18 10:44

同埋有冇得睇log?如果有android studio就可以睇下有冇logcat有冇嘢炒

loading=true

我估係個query唔啱啫

但改極都無起色

#6 3
17/10/18 10:52

同埋有冇得睇log?如果有android studio就可以睇下有冇logcat有冇嘢炒

loading=true

我估係個query唔啱啫

但改極都無起色

但係你只係抄返之前條query,一定唔會錯

#7 小貓咪
17/10/18 11:00

懷疑係哩度

但唔知點set

食完飯再望下

#8 小貓咪
17/10/18 11:01

同埋有冇得睇log?如果有android studio就可以睇下有冇logcat有冇嘢炒

loading=true

我估係個query唔啱啫

但改極都無起色

但係你只係抄返之前條query,一定唔會錯

i mean我用錯個library

#9 3
17/10/18 11:02

攞po唔洗token,試下剷咗佢

#10 笨忍實
17/10/18 12:29

有玩flutter,不過未玩過graphql

#11 笨忍實
17/10/18 12:34

睇吓個sample

#12 小貓咪
17/10/18 13:19

睇吓個sample

哩個ok

但graphql嗰個唔知點解唔得

#13 小貓咪
17/10/18 15:36

進度慢到自己都忍唔到笑

#14 小貓咪
17/10/18 15:39

目前design

Channel page

- 入post (thread)

- 轉臺(channel)

- 轉tag?

- 開post(new thread)

- 入app settings

- 㩒user name 可以入member page

- 入personal page

- 拉到最上會refresh

- 拉到最落會load多頁post

- 每個thread 嘅list item 會有thread title, author, number of replies, image preview*

* 我想郊登flutter app可以好似reddit咁

如果開post(#1)有圖 喺channel page就會有縮圖preview

Thread page

- 最頂title

- Replies

- 每個reply可以引用(向右拉?)/分享

- 可回覆

- 可㩒名入member page

- 拉到最上refresh

- 拉到最落load 多頁

- 可轉頁

- 向左拉回到channel page

Member page

- 轉花名**

- 睇佢開/回嘅post

- block user

搵個位,例如sqlite,裝住member id 同改嘅名, user登>入後 個app 會show 改咗嘅名, 方便認住成日改名嘅會員

User page

- 登入

- 睇開/回嘅post

- 轉名 (有api未)

- block list <- can unblock users

- Logon

New thread page

- 入title

- 入內容

- 揀tag

- 入相*

- preview

*** 可能參考lihkg 用超膠個網upload相

New reply page

- 入內容

- 入相

- preview

#15 3
17/10/18 15:39

攞到了

#16 郊登護理員
17/10/18 15:43

#17 3
17/10/18 15:44

出現了

#18 笨忍實
17/10/18 18:00

加油

#19 3
18/10/18 00:44

加油

#20 小貓咪
19/10/18 15:47

救命之二

而家出咗呢啲

&#x8F49;&#x982D;&#x53BB;&#x8CB7;&#x5148;

應該係

\u8F49\u982D\u53BB\u8CB7\u5148

轉頭去買先

點先出到

#21 3
19/10/18 15:48

你咪搵到囉唔係咩?

#22 3
19/10/18 15:52

#23 小貓咪
20/10/18 17:09

笨忍實有無玩過 refresher

#24 笨忍實
20/10/18 17:21

笨忍實有無玩過 refresher

未用過呢個package, pull to refresh 唔work?

#25 3
20/10/18 17:22

#26 小貓咪
20/10/18 17:36

笨忍實有無玩過 refresher

未用過呢個package, pull to refresh 唔work?

work 但應該做啲乜

點 拉下refresh 同 拉上add 舊啲嘅 post 喺最後

widget context嗰啲唔係好識

#27 小貓咪
20/10/18 17:37

我擺上github你會一齊玩嗎?

#28 3
20/10/18 17:46

我擺上github你會一齊玩嗎?

冇精神學新嘢住,睇就會睇嘅。

#29 3
20/10/18 19:27

我用呢個免費網學android,雖然啲料唔係最新,不過都叫全面。原來佢都有教flutter,等我得閒上堂先

#30 笨忍實
21/10/18 02:00

笨忍實有無玩過 refresher

未用過呢個package, pull to refresh 唔work?

work 但應該做啲乜

點 拉下refresh 同 拉上add 舊啲嘅 post 喺最後

widget context嗰啲唔係好識

urrrrr..... 咁點為之work[sosad]

啱啱睇返之前寫嘅野,我係用FutureBuilder包住個listview, 印象中係你想做嗰兩件事已經support

#31 3
21/10/18 02:28

犀利

#32 小貓咪
21/10/18 02:45

我用呢個免費網學android,雖然啲料唔係最新,不過都叫全面。原來佢都有教flutter,等我得閒上堂先

你應該一學就識啦

同java都幾似

#33 小貓咪
21/10/18 02:48

未用過呢個package, pull to refresh 唔work?

work 但應該做啲乜

點 拉下refresh 同 拉上add 舊啲嘅 post 喺最後

widget context嗰啲唔係好識

urrrrr..... 咁點為之work[sosad]

啱啱睇返之前寫嘅野,我係用FutureBuilder包住個listview, 印象中係你想做嗰兩件事已經support

咁buildheader 係應該return listview builder定咩好

#34 笨忍實
21/10/18 03:17

work 但應該做啲乜

點 拉下refresh 同 拉上add 舊啲嘅 post 喺最後

widget context嗰啲唔係好識

urrrrr..... 咁點為之work[sosad]

啱啱睇返之前寫嘅野,我係用FutureBuilder包住個listview, 印象中係你想做嗰兩件事已經support

咁buildheader 係應該return listview builder定咩好

踩完單車返屋企睇吓先答到你,唔撚記得自己用過啲乜

#35 笨忍實
21/10/18 05:14

睇住呢篇參考吓先

#36 小貓咪
21/10/18 11:33

#37 3
21/10/18 12:26

追緊卡通公仔停唔到sorr,希望沖完涼有時間開始上堂學新嘢。

#38 3
21/10/18 14:09

我用呢個免費網學android,雖然啲料唔係最新,不過都叫全面。原來佢都有教flutter,等我得閒上堂先

你應該一學就識啦

同java都幾似

java 邊有好似js咁寫法, java唔會加argument name

可能你將Kotlin搞亂咗以為係java, 因為google所有android api網頁都預設用Kotlin

#39 3
24/10/18 12:27

有更新

做咩整走咗個image preview啫, 明明加個content就做到

{"operationName":null,"variables":{"channelId":"bw","page":2},"query":"query ($channelId: String!, $page: Int!) {\n threadsByChannel(channelId: $channelId, page: $page) {\n id\n title\n replies {\n author {\n id\n gender\n __typename\n }\n authorNickname\n date\n content\n __typename\n }\n totalReplies\n tags {\n name\n color\n __typename\n }\n __typename\n }\n}\n"}

#40 小貓咪
24/10/18 12:54

有更新

做咩整走咗個image preview啫, 明明加個content就做到

{"operationName":null,"variables":{"channelId":"bw","page":2},"query":"query ($channelId: String!, $page: Int!) {\n threadsByChannel(channelId: $channelId, page: $page) {\n id\n title\n replies {\n author {\n id\n gender\n __typename\n }\n authorNickname\n date\n content\n __typename\n }\n totalReplies\n tags {\n name\n color\n __typename\n }\n __typename\n }\n}\n"}

你覺得點做好?

我覺得全部process image preview比較慢 又晒network

又唔想整server去儲存壓縮嘅圖片

諗住整咗基本功能先咋 雖然都未得閒開始

#41 3
24/10/18 12:58

有更新

做咩整走咗個image preview啫, 明明加個content就做到

{"operationName":null,"variables":{"channelId":"bw","page":2},"query":"query ($channelId: String!, $page: Int!) {\n threadsByChannel(channelId: $channelId, page: $page) {\n id\n title\n replies {\n author {\n id\n gender\n __typename\n }\n authorNickname\n date\n content\n __typename\n }\n totalReplies\n tags {\n name\n color\n __typename\n }\n __typename\n }\n}\n"}

你覺得點做好?

我覺得全部process image preview比較慢 又晒network

又唔想整server去儲存壓縮嘅圖片

諗住整咗基本功能先咋 雖然都未得閒開始

基本嘢行先

#42 3
26/10/18 12:08

認真答,我諗畀條url個image widget就得?佢會自己開新thread download,唔洗理佢performance?不過最後都係要試咗先知有圖會比冇圖慢幾多。

#43 3
26/10/18 18:02

做完第6個lab。Yeah!

淨係個combo box已經要雞包紙包雞包紙包雞包包包好多個widget,同埋要落一堆不知名調味粉,先做到個似樣嘅樣。

本主題共有 43 則回覆,第 1 頁。