Open ghost opened 3 years ago
Make the following changes to your models and controllers:
RxInt _quantity = RxInt(); to RxInt _quantity = RxInt(0); or RxInt _quantity = 0.obs;
Rx<ProductModel> _product = Rx<ProductModel>() to Rx<ProductModel> _product = ProductModel().obs
RxString _name = RxString(); to RxString _name = RxString(''); or RxString _name = ''.obs;
RxBool _like = RxBool(); to RxBool _like = RxBool(false); or RxBool _like = false.obs;
Rx<CategoryModel> _selectedCategory = Rx<CategoryModel>(); to Rx<CategoryModel> _selectedCategory = CategoryModel().obs;
Maybe due to the flutter upgrade, the application is not functioning now. The following is the error when trying to run it.