Every screen reads colours from one InheritedWidget; a TweenSequence flickers it like a tube light. Respects Reduce Motion.
Plus a hand-painted 7-segment LCD meter. Flutter #FlutterDev #buildinpublic
Every screen reads colours from one InheritedWidget; a TweenSequence flickers it like a tube light. Respects Reduce Motion.
Plus a hand-painted 7-segment LCD meter. Flutter #FlutterDev #buildinpublic
In 2019, Flutter rejected PR #33213. InheritedWidget couldn't unlisten from conditional reads.
The paper trail & the signals fix:
dev.to/gde/the-sand...
In 2019, Flutter rejected PR #33213. InheritedWidget couldn't unlisten from conditional reads.
The paper trail & the signals fix:
dev.to/gde/the-sand...
#Flutter #StateManagement #InheritedWidget #FlutterTips #FlutterDev
#Flutter #StateManagement #InheritedWidget #FlutterTips #FlutterDev
I added a new sample and updated the docs to explain how you can reuse ViewModel logic
Working on an explainer video....
pub.dev/packages/cod...
I added a new sample and updated the docs to explain how you can reuse ViewModel logic
Working on an explainer video....
pub.dev/packages/cod...
v0.0.5 of code_on_the_rocks is up!
- New getModel helper function
- New #Flutter counter example
- Updated Readme with more usage details
https://pub.dev/packages/code_on_the_rocks
v0.0.5 of code_on_the_rocks is up!
- New getModel helper function
- New #Flutter counter example
- Updated Readme with more usage details
https://pub.dev/packages/code_on_the_rocks
Use MediaQuery's static methods...you know you want to
https://code-on-the-rocks.web.app/tips/easy-mediaquery/
Use MediaQuery's static methods...you know you want to
https://code-on-the-rocks.web.app/tips/easy-mediaquery/
46 lines of #Dart code to help you manage your app state!
We wanted to stick close to #Flutter so we're basically just wrapping Stateful and Inherited widgets 📦
https://pub.dev/packages/code_on_the_rocks
46 lines of #Dart code to help you manage your app state!
We wanted to stick close to #Flutter so we're basically just wrapping Stateful and Inherited widgets 📦
https://pub.dev/packages/code_on_the_rocks
The boilerplate doesn't bother me much when I only need to type a few characters 💡🧠💥
https://codeontherocks.dev/blog/just-inherited-widgets/
The boilerplate doesn't bother me much when I only need to type a few characters 💡🧠💥
https://codeontherocks.dev/blog/just-inherited-widgets/
ドキュメントのこの章をしっかり理解できると、自分が「読むのしんどいなー」と思っていたコードもしっかりと読めて、文脈の意味を理解することができるようになりそう
(それでも、このプラクティスがいたるところで乱用されてしまうと、`InheritedWidget` と同様に画面に利用する複数 widget の挙動が理解しにくくなると考えているのは変わらないです)
---
riverpod.dev/ja/docs/conc...
ドキュメントのこの章をしっかり理解できると、自分が「読むのしんどいなー」と思っていたコードもしっかりと読めて、文脈の意味を理解することができるようになりそう
(それでも、このプラクティスがいたるところで乱用されてしまうと、`InheritedWidget` と同様に画面に利用する複数 widget の挙動が理解しにくくなると考えているのは変わらないです)
---
riverpod.dev/ja/docs/conc...
“Hahah no you don’t want StatefulWidget you want InheritedWidget”
Did you just tell me to go fuck myself?
“Hahah no you don’t want StatefulWidget you want InheritedWidget”
Did you just tell me to go fuck myself?
It felt like such a simple, innocent question, but ChatGPT is sure taking its time to answer...
... oh, and now the answer is *much* longer than I expected.
Down the rabbit hole puf goes....
It felt like such a simple, innocent question, but ChatGPT is sure taking its time to answer...
... oh, and now the answer is *much* longer than I expected.
Down the rabbit hole puf goes....