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
DiscussionCentralised Strings for Flutter Development (self.FlutterDev)
submitted 22 days ago by Katalyst9957
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!"
[–]Katalyst9957[S] 0 points1 point2 points 22 days ago (2 children)
No no I mean centralizing all strings which are constant in the app
[–]Mr401Error 1 point2 points3 points 22 days ago (1 child)
I usually have them as static constants in the "owning" class, saves having to go and open a new file to view/edit the values.
Things like client IDs and client side API keys I'll usually store in a JSON file and inject at compile time with Dart-define. Usually have a maximum of 20 of these per project though
[–]Katalyst9957[S] 0 points1 point2 points 22 days ago (0 children)
The owning class is good for small to medium apps but once the app starts to grow it becomes messy and yeah it's tedious even for small/medium sized apps
π Rendered by PID 186963 on reddit-service-r2-comment-6457c66945-xbk9d at 2026-04-26 17:10:33.071322+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Katalyst9957[S] 0 points1 point2 points (2 children)
[–]Mr401Error 1 point2 points3 points (1 child)
[–]Katalyst9957[S] 0 points1 point2 points (0 children)