Error: Could not find the correct Provider«FavoriteModel above this Consumer Widget This happens because you used a "BuildContext, that does not include the provider Eror: Could not find the correct Provider«FavoriteModels above this Consumer«FavoriteModels Widget This happens because you used a 'BuildContext that does not include enter image description here
void main() {
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
),
);
APICallService.getProduct();
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(
create: (context) => FavoriteModel(),
),
ChangeNotifierProvider(
create: (context) => CartProvider(),
),
],
child: const App(),
),
);
}
I dont know about this error