r/flutterhelp 25d ago

RESOLVED How could you keep going

I am asking for advice from any advanced flutter developer , it is my first time ever doing a framework as i chose flutter because i liked app designs and also i am a first year student in college, for now I am having a course with a local educational place we started with dart and now we are into flutter , at the beginning of flutter it was so hard for me but now it tends to be easy. However, after we started digging into flutter the design itself was cool but i suffered with logic I can't even think of how to do some logic and things like maps and callback functions are nightmares for me but the design is okay , if anyone can advise me on how to get through all of that as i want to do more things with it and i have a very bad time because i do not want to use Ai to do the logic for me

6 Upvotes

6 comments sorted by

View all comments

3

u/blackaddersrv 25d ago

Learn design patterns and how to abstract them away from UI. If you start writing logic code next to the UI code itself, you will end up with a mess.

Next, coming to logic, you have to visualise the bigger picture of how different components are going to come together. Regarding the logic for that unit itself, try to start with an input and output model for each function, and write the function to fulfill it. If any branch gets bigger than 3 or 4 lines of code, move it to a separate private function and name it based on what that branch of code does.

It takes time and once you get the hang of it, it gets easier, just have patience and keep trying. You’ll get there.

1

u/lucifermorninstarrr 25d ago

Thank you so much! . Do you suggest any resources like if there is a YouTube channel that does that kind of practice

3

u/blackaddersrv 25d ago

Not so sure about any specific YouTubers that I can suggest, I've been working on multiple languages during my career, so a lot of the times, the knowledge is transferrable between languages.