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
Back To Top
Search