Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
flutter_kmm_1.pdf
Kyohei Ito
December 21, 2020
Programming
0
420
flutter_kmm_1.pdf
Kyohei Ito
December 21, 2020
Tweet
Share
More Decks by Kyohei Ito
See All by Kyohei Ito
kyoheig3
0
410
kyoheig3
2
1.7k
kyoheig3
4
1.1k
kyoheig3
4
610
kyoheig3
9
910
kyoheig3
1
1.7k
kyoheig3
6
5k
kyoheig3
8
6.1k
Other Decks in Programming
See All in Programming
yosuke_furukawa
PRO
13
3.6k
mu2in
0
140
nbkouhou
9
4.5k
nbkouhou
1
1.1k
asumikan
0
280
77web
0
210
manfredsteyer
PRO
0
250
chichou
1
820
ajstarks
2
550
kenmaz
1
100
cwozaki
1
1.6k
junmikai
0
290
Featured
See All Featured
philnash
8
490
lauravandoore
11
1.2k
andyhume
62
3.3k
edds
56
9.3k
morganepeng
92
13k
bryan
100
11k
orderedlist
PRO
329
35k
pauljervisheath
196
15k
jponch
103
4.9k
destraynor
223
47k
jonrohan
1021
380k
jrom
114
7.1k
Transcript
ಡղ Flutter Hooks Flutter × Kotlin Multiplatform #1 2020/12/21
About Me ҏ౻ɹګฏ Github : KyoheiG3 Twitter : @KyoheiG3
Hooksͷ͍ํ ← Γ·ͤΜ
Hooksͷಈ͖Λཧղ͢Δ ← ඪ ※ίʔυଟΊͰ͢
What is Hooks?
What is Hooks? • ͱͱReactJSͷ16.8(2019/2Ҏ߱)ʹՃ͞Εͨػೳ • Remi Rousselet͞Μ͕2018/12ʹinitial commit
Why Hooks?
None
None
Why Hooks? • ঢ়ଶͷཧͳͲΛclassΛΘͣʹ୯ମͰߦ͏͜ͱ͕Ͱ͖Δ Α͏ʹͳΔ
Flutter?
None
None
Why Hooks? • ঢ়ଶͷཧͳͲΛStatefulWidgetΛΘͣʹ୯ମͰߦ͏͜ ͱ͕Ͱ͖ΔΑ͏ʹͳΔ
Principle
None
Code Reading
HookWidget & HookElement
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Hook & HookState
None
None
None
None
None
Existing hooks
https://github.com/rrousselGit/flutter_hooks#existing-hooks
Custom Hook
Custom Hook • class • function
None
None
None
None
None
None
Rules
None
None
About hot-reload
None
None
None
Thanks!