In order to improve code quality and maintainability, it is necessary to update the app architecture. This includes extracting code to separate classes (e. g. utilities) or widgets (e. g. MediaList for different types of media), creating models (e. g. MediaData), and using providers more consistently.
In order to improve code quality and maintainability, it is necessary to update the app architecture. This includes extracting code to separate classes (e. g. utilities) or widgets (e. g. MediaList for different types of media), creating models (e. g. MediaData), and using providers more consistently.
For starters, see here: https://www.filledstacks.com/post/flutter-architecture-my-provider-implementation-guide/