Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introdução a streams em Dart/Flutter
Search
Luke Silva
October 31, 2019
Programming
29
0
Share
Introdução a streams em Dart/Flutter
Luke Silva
October 31, 2019
More Decks by Luke Silva
See All by Luke Silva
A ciência por trás da diversão nos games
lukesilva
0
17
Other Decks in Programming
See All in Programming
ふにゃっとしない名前の付け方 〜哲学で茹で上げる、コシのあるソフトウェア設計〜
shimomura
0
120
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.9k
t *testing.T は どこからやってくるの?
otakakot
1
930
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
770
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
160
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
3.1k
tRPCの概要と少しだけパフォーマンス
misoton665
2
270
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
270
要はバランスからの卒業 #yumemi_grow
kajitack
0
160
GoogleCloudとterraform完全に理解した
terisuke
1
200
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
180
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Crafting Experiences
bethany
1
140
WCS-LA-2024
lcolladotor
0
590
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.6k
Side Projects
sachag
455
43k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
390
エンジニアに許された特別な時間の終わり
watany
106
240k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Fireside Chat
paigeccino
42
3.9k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
540
The Invisible Side of Design
smashingmag
302
52k
Transcript
Introdução a Streams em Dart / Flutter
Prazer ! @lukesilva_dev github.com/lukelima dev.to/lukesilva_dev
None
Programação assíncrona
future
São como caixas que, após abertas, podem conter um valor
ou um erro
São como caixas que, após abertas, podem conter um valor
ou um erro Uncompleted Completed with data Completed with error
https://gist.github.com/lukelima/3bc1e3edcaa44f2c8bd10628571358d6
None
https://gist.github.com/lukelima/b35affd44b1616d217b04ea330287015
None
FutureBuilder()
https://gist.github.com/lukelima/b35affd44b1616d217b04ea330287015
streams
Streams fornecem uma forma de receber uma sequência de eventos
sink stream StreamController
https://gist.github.com/lukelima/67480dc752cc87c909c23e82e3e0cd24
https://gist.github.com/lukelima/67480dc752cc87c909c23e82e3e0cd24
None
https://dart.dev/tutorials/language/streams
None
https://gist.github.com/lukelima/67480dc752cc87c909c23e82e3e0cd24
Dois tipos de streams single- subscription broadcast
StreamBuilder
Widget que se reconstrói baseando-se no último snapshot de interação
com uma stream
https://gist.github.com/lukelima/d464fdd372e4bedc49f6f6e06f8c02af
None
initialData snapshot snapshot.hasData snapshot.connectionState stream snapshot.hasError
None
None
https://www.youtube.com/watch?v=nQBpOIHE4eE&t=377s
https://www.youtube.com/watch?v=MkKEWHfy99Y
Obrigado ! @lukesilva_dev github.com/lukelima dev.to/lukesilva_dev
[email protected]
None