skip to Main Content

Android Studio – Error: could not find the correct Provider<List<Parking>> above this ParkingList Widget

import 'package:flutter/material.dart'; import 'package:flutter_user_profile/home/parking_tile.dart'; import 'package:provider/provider.dart'; import 'parking_tile.dart'; import '../model/parking.dart'; class ParkingList extends StatefulWidget { @override State<ParkingList> createState() => _ParkingListState(); } class _ParkingListState extends State<ParkingList> { @override Widget build(BuildContext context) { final parkings = Provider.of<List<Parking>>(context); return ListView.builder( itemCount: parkings.length, itemBuilder:…

VIEW QUESTION

Android Studio – warning: [deprecation] <TResult>call(Executor,Callable<TResult>) in Tasks has been deprecated

I'm getting this error while I was running my app (though my app is running fine) : C:UsersdassaDownloadsflutter_windows_2.2.3-stableflutter.pub-cachehostedpub.dartlang.orgfirebase_storage-10.2.11androidsrcmainjavaioflutterpluginsfirebasestorageFlutterFirebaseStorageTask.java:198: warning: [deprecation] <TResult>call(Executor,Callable<TResult>) in Tasks has been deprecated return Tasks.call(FlutterFirebasePlugin.cachedThreadPool, () -> storageTask.cancel()); ^ where TResult is a type-variable: TResult extends Object…

VIEW QUESTION
Back To Top
Search