Replies: 3 comments 10 replies
-
We can also have: abstract class $StatelessWidget extends StatelessWidget with StatelessWatcher {
const $StatelessWidget({super.key});
}
abstract class $StatefulWidget extends StatefulWidget with StatefulWatcher {
const $StatefulWidget({super.key});
} And then we just add // Old
class HomeScreen extends StatelessWidget with StatelessWatcher{
// New
class HomeScreen extends $StatelessWidget{
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Found issue in my initial attempt, |
Beta Was this translation helpful? Give feedback.
10 replies
-
For anyone trying this, expect another issue were you would need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to watch_it mixins.
Since we don't have to prematurely optimize we can first implement subscriptions on the top level, then based on need, say for transient state, we can scope rebuilds with the
Watch
widget.Here is my initial attempt:
Beta Was this translation helpful? Give feedback.
All reactions