You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a view using a drive file, and the build process always prompts "Expression has an unknown type, the generated code can be inaccurate."
How to solve this problem?
thanks!
task table
CREATETABLEtasks (
id INTNOT NULLPRIMARY KEY AUTOINCREMENT,
title TEXTNOT NULL
);
Are the tables and the views in different drift files? If so, you need an import 'path/to/table.drift'; import statement at the top of the drift file importing the view.
Are the tables and the views in different drift files? If so, you need an import 'path/to/table.drift'; import statement at the top of the drift file importing the view.
The problem was resolved after importing the drift file.
I didn't read the document clearly. I found it on Supported statements
I created a view using a drive file, and the build process always prompts
"Expression has an unknown type, the generated code can be inaccurate."
How to solve this problem?
thanks!
task table
todo table
tabk view
database.g.dart TaskViewData
It is obvious that the
id
field type should beint
to be correctThe text was updated successfully, but these errors were encountered: