I have two flutter projects, one is admin application and other user application. Both applications use many same models and classes, and common widgets.
Currently I am copying the model classes and widgets, to both projects, and when I need to change anything, I need to remember to change it in the other project too.
Is there any other method to do this? Should I create a custom package and import it in both projects? What would be the recommended way to do this?