It's a good practice to keep code modular. In Flutter we usually succeeded by splitting the code to packages.
in the top level of the app create a new folder named packages and create a new package named tasks_repository.
Flutter has a script that makes the magic: flutter create --template=package <package_name>
In this case it would be: flutter create --template=package <package_name>
Just remember to run in in packages folder, otherwise new package will be create somewhere else.
@kamilgadek Let me know if you would have a questions
It's a good practice to keep code modular. In Flutter we usually succeeded by splitting the code to packages. in the top level of the app create a new folder named
packages
and create a new package namedtasks_repository
. Flutter has a script that makes the magic:flutter create --template=package <package_name>
In this case it would be:flutter create --template=package <package_name>
Just remember to run in in packages folder, otherwise new package will be create somewhere else. @kamilgadek Let me know if you would have a questions