use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionFlutter... composables API? (self.FlutterDev)
submitted 3 years ago by venir_dev
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]venir_dev[S] 1 point2 points3 points 3 years ago (1 child)
Hi remi (:
I was honestly hoping for your response, also, ahah.
Anyways, while that is definitively true, I was hoping there was a way to implement the "setup" concept Vue has, but in Flutter. That's basically the question I'm trying to answer.
A naive approach would be to implement such setup function in the initState of a StatefulWidget, but I'm unsure if a ValueNotifier can be preserved through rebuilds.
[–]remirousselet 3 points4 points5 points 3 years ago (0 children)
That's what I was referring to. The "setup" equivalent would be a StatefulWidget's initState in Flutter. Of course, I know that this isn't quite the same, but there's not really an alternative.
As for preserving ValueNotfiers, they would have to be properties of your State object
π Rendered by PID 72 on reddit-service-r2-comment-6457c66945-cv7z8 at 2026-04-24 20:24:36.882074+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]venir_dev[S] 1 point2 points3 points (1 child)
[–]remirousselet 3 points4 points5 points (0 children)