Widget build(context) { try{ if (isFirst == true) { fetchImage(); fetchCategories(context); isFirst = false; } }catch(Excepti
To me, going to the project directory and running the command flutter clean fixed the error
flutter clean