Need advice on Flutter architecture and learning databases
I learned Flutter a few months ago and have built several small projects.
I’d like to improve the way I structure my Flutter projects before I start building larger ones. Currently, I usually organize my "lib" folder something like this:
lib/
├── main.dart
├── app_theme.dart
├── database/
├── providers/
├── screens/
├── widgets/
└── utils/
Is this a reasonable structure, or would you recommend a different architecture? If so, I’d really appreciate it if you could explain why and when I should use it.
Also, I’ve never worked with databases before. I’d like to learn how databases work and how to properly integrate one into a Flutter app.
Could you recommend some good, up-to-date resources for learning databases and database integration with Flutter?
Thanks!