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 your friend
Search
Diego Velásquez
November 02, 2019
Technology
2
51
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
87
Bienvenido a Flutter
diegoveloper
0
46
Beautiful apps in record time with Flutter
diegoveloper
0
42
Hello Flutter - Beautiful apps in record time
diegoveloper
0
110
Introducción a Flutter
diegoveloper
1
160
Flutter y el impacto en el mercado actual de apps móviles
diegoveloper
0
110
Let's start with Flutter
diegoveloper
0
60
Hello Flutter!
diegoveloper
0
90
Android Intents using Dart & Henson
diegoveloper
0
66
Other Decks in Technology
See All in Technology
【基本】データベース設計
oracle4engineer
PRO
2
250
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
35k
プロンプトエンジニアリングでがんばらない-Agentic Workflow へ-近藤憲児
kenjikondobai
6
1.3k
20分で完全に理解するGrafanaダッシュボード
hamadakoji
5
970
Documentação de Produtos: Artefatos essenciais na prática
rigolon
1
190
止まらないLinuxシステムを構築する_高信頼性クラスタ入門
koedoyoshida
3
2.3k
実例で紹介するRAG導入時の知見と精度向上の勘所
yamahiro
7
2.1k
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
350
2024春 注目のWeb系 OSS & SaaS 3選
makies
0
200
AWSやJAWS-UGとの出会いを振り返る
yoyoyopg
1
160
LLM開発・活用の舞台裏@2024.04.25
yushin_n
3
1.3k
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
490
Featured
See All Featured
Producing Creativity
orderedlist
PRO
338
39k
Rails Girls Zürich Keynote
gr2m
91
13k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
The Invisible Side of Design
smashingmag
294
49k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
242
1.2M
Designing with Data
zakiwarfel
96
4.8k
Fireside Chat
paigeccino
22
2.6k
Practical Orchestrator
shlominoach
183
9.7k
Writing Fast Ruby
sferik
622
60k
Building Applications with DynamoDB
mza
88
5.6k
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