Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hi @ian-pop! πŸ‘‹

Importing the app in the server is a bad ideia, since it will carry the Flutter SDK and all dependencies, platform code, etc. If you don't want to rebuild your models as Serverpod models (which would be the safest approach), the best alternative is to move them out of the app to a shared package that does not depend on Flutter. You can then import this package in both the app and the server safely. Take a look at the docs for how to use custom types.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ian-pop
Comment options

Answer selected by marcelomendoncasoares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants