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
Flutter: Don't be afraid, State Management is y...
Search
Diego Velásquez
November 02, 2019
Technology
2
54
Flutter: Don't be afraid, State Management is your friend
Flutter state management using Provider
Live code:
https://github.com/diegoveloper/flutter_codelabs
Diego Velásquez
November 02, 2019
Tweet
Share
More Decks by Diego Velásquez
See All by Diego Velásquez
Stateful & Async Widgets
diegoveloper
0
96
Bienvenido a Flutter
diegoveloper
0
52
Beautiful apps in record time with Flutter
diegoveloper
0
46
Hello Flutter - Beautiful apps in record time
diegoveloper
0
120
Introducción a Flutter
diegoveloper
1
170
Flutter y el impacto en el mercado actual de apps móviles
diegoveloper
0
120
Let's start with Flutter
diegoveloper
0
65
Hello Flutter!
diegoveloper
0
120
Android Intents using Dart & Henson
diegoveloper
0
76
Other Decks in Technology
See All in Technology
Zennのパフォーマンスモニタリングでやっていること
ryosukeigarashi
0
150
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
390
複雑なState管理からの脱却
sansantech
PRO
1
150
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
130
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
420
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
200
Application Development WG Intro at AppDeveloperCon
salaboy
0
190
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
0
200
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
540
『Firebase Dynamic Links終了に備える』 FlutterアプリでのAdjust導入とDeeplink最適化
techiro
0
130
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
9
1.1k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
A better future with KSS
kneath
238
17k
Adopting Sorbet at Scale
ufuk
73
9.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Scaling GitHub
holman
458
140k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
GitHub's CSS Performance
jonrohan
1030
460k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Transcript
Don’t be afraid, State Management is your Friend Diego Velásquez
López @diegoveloper
Diego Velásquez López Mobile Software Architect About me • Google
Developer Expert Flutter • Software engineer • Android / iOS / Flutter • Creator of 2 Android apps (+150k downloads): ◦ Pseudocode ◦ Quick Printer • Founder & Organizer @ Flutter Peru @diegoveloper https://aeyrium.com/
• Multiplatform framework created by Google. • Works for Android/iOS/Web/Desktop.
• We can create beautiful and native apps with a single codebase.
State Management ??
What Why How
What
Let’s Code!
None
Why • Keep UI separated from business logic. • Increase
the performance of your app. • Allows adding features quickly without breaking the code neither sacrificing code quality. • Easy to understand; hard to break. • Easy to test.
How • Using setState() and StatefulWidgets • ScopedModel • BLoC
(Business Logic Component) • Redux • MobX • Provider
Provider https://pub.dev/packages/provider Expose/Provide Read/Listen
Expose/Provide
Read/Listen 1- 2-
ChangeNotifierProvider (CartModel) (Get Cart Items) (Add Item) (Clear Items)
Summary There’s not right or wrong solution. Choose the one
that best suits your needs.
Questions •
[email protected]
• https://github.com/diegoveloper/ • https://medium.com/@diegoveloper • https://twitter.com/diegoveloper
References • https://flutter.dev/docs/development/data-and-backend/state-mgmt/intro • https://github.com/diegoveloper/flutter_codelabs
• https://www.meetup.com/Flutter-Peru/ • https://twitter.com/FlutterPeru • https://www.facebook.com/FlutterPeru