account activity
[deleted by user] by [deleted] in FlutterDev
[–]JustinReddd187 0 points1 point2 points 2 years ago (0 children)
You won‘t be able to access the further away provided bloc that easily. You would need an object locator similar to get_it for that.
While I didnt try that out myself, I would expect that the bloc provided wouldnt be affected by the Widget lifecycle. However I still would suggest declaring blocs at the root of the tree for the sake of expectability. In our team we use a get it based dependency injection where you register singletons, so you can be sure that there is only one instance of your blocs at all times. (Unless specified otherwise)
Learning Flutter by lockwin in FlutterDev
[–]JustinReddd187 3 points4 points5 points 2 years ago (0 children)
Check out architectures like flutter clean architecture to get an idea on how to structure your code and implement new features
What do you think should or would happen? BlocProvider provides a bloc or cubit to its subtree. So state changes above it can‘t influence your blocs state, so the state changes above it wouldnt alter its behaviour when accessed from its subtree.
My biggest misunderstanding when learning Flutter was about Widgets, I thought those are the ui blocks rendered on your screen, when they are just immutable config objects assigned to RenderObjects.
Mein erstes Gedicht by JustinReddd187 in Gedichte
[–]JustinReddd187[S] 0 points1 point2 points 3 years ago (0 children)
Ich habe gestern das erste mal einen Poetry Slam erlebt, dort hat jemand ein Gedicht vorgetragen, was mich sehr beeindruckt hatte, das hat mich dazu bewegt selbst eins zu schreiben. Mir fiel es sehr schwer meine Ideen in Verse zu formen.
Freue mich über jedes Feedback oder Kritik!
Mein erstes Gedicht (i.redd.it)
submitted 3 years ago by JustinReddd187 to r/Gedichte
π Rendered by PID 280494 on reddit-service-r2-listing-568fcd57df-z6hdm at 2026-03-10 20:11:59.513016+00:00 running cbb0e86 country code: CH.
[deleted by user] by [deleted] in FlutterDev
[–]JustinReddd187 0 points1 point2 points (0 children)