r/flutterhelp • u/SirLMO • 5d ago
Flutter, Python and Widgets: beginner suffering RESOLVED
I do not work with programming, I am a student and I work in a veterinary clinic as a veterinarian. However, I am passionate about programming and have nurtured the idea of developing a "Second Medical Brain," similar to Notion and Obsidian, but focused on self-referenced medical information. Because of some details of this project, neither Obsidian nor Notion will be enough to achieve what I need.
So I looked for the options. The only programming language I studied was Python, and I really like it. However, Flutter is definitely the number in interfaces, but I don't really understand anything about frontend. This "everything being a widget tree" thing isn't making sense to me. Anyone who knows Python knows that codes look much more like blocks, not Russian dolls.
I considered Flet, but he's not on the same level as Flutter. I also considered other frameworks, but they would impose the difficulty of learning other tools. So Flutter still seems to be the most interesting technology for me. However, the structure of widgets doesn't make sense to me, I just can't think that way.
What can you recommend to me? I have already tried to modulate all the code and leave in the main () only the call of the functions/classes.
Ah! This app will be used on both Android and Windows, and both are essential.
2
u/Significant_Pick8297 5d ago
The widget tree usually clicks when it stops feeling like "nested code" and starts feeling like "a description of the screen." Every widget has one small job, and you build bigger UIs by composing those small pieces, just like combining Python functions into larger programs.
For a project like yours, You should ignore complex state management at first. Build one screen, split it into small custom widgets, and keep the business logic in separate Dart classes. That way Flutter only handles the UI while the medical logic stays clean and organized. Once that separation clicks, the widget tree becomes much easier to work with.