ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'Map<String, dynamic>

Issue This is my code class PopularProductController extends GetxController { final PopularProductsRepo popularProductsRepo; PopularProductController({required this.popularProductsRepo}); List<dynamic> _popularProductList = []; List <dynamic> get popularProductList => _popularProductList; Future<void> getPopularProductList()async { Response response = await popularProductsRepo.getPopularProductList(); if(response.statusCode==200) { print("get products"); _popularProductList =[]; _popularProductList.addAll(Product.fromJson(response.body).products);//

Continue reading

How can make checkbox select and multiple selection with Getx

Issue my code is without button that make select all View class GetBuilder<ProductController>( builder: (controller) { return Container( height: 50, child: Transform.scale( scale: 1.2, child: Checkbox( activeColor: MyThemes.yellow, shape:RoundedRectangleBorder( borderRadius: BorderRadius.circular(5) ), splashRadius: 18.8, value: controller.items[index]["check"], onChanged:((value) { controller.CheckBrand(index, value);

Continue reading