Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introdução a streams em Dart/Flutter
Search
Luke Silva
October 31, 2019
Programming
32
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
18
Other Decks in Programming
See All in Programming
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
APNsからLive Activityを開始する話
yumnumm
0
170
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
540
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Event is what happens
moro
2
770
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
270
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
Featured
See All Featured
The Curse of the Amulet
leimatthew05
3
16k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Music & Morning Musume
bryan
48
7.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Navigating Weather and Climate Data
rabernat
0
560
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
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