mohamedHassanKa / ProductAppCourse

Flutter — Firebase FireStore CRUD Operations Using Provider
141 stars 57 forks source link

rounter: The parameter 'product' is required #1

Open johnareid54 opened 4 years ago

johnareid54 commented 4 years ago

VS Code is reporting a problem in the ProductAppCourse/lib/ui/router.dart file: which then links to: ProductAppCourse/lib/ui/views/productDetails.dart

but I can't find any reason why: I am using [√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.18362.267], locale en-GB) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.4) [√] VS Code (version 1.37.0)

kzawadi commented 4 years ago

me too

The argument type 'Product (where Product is defined in C:\Users\Mr.xx\Documents\MyApps\ProductAppCourse\lib\core\models\productModel.dart)' can't be assigned to the parameter type 'Product (where Product is defined in C:\Users\Mr.xx\Documents\MyApps\productappcourse\lib\core\models\productModel.dart)'.