title: error: Could not find the correct Provider<List> above this Consumer<List> Widget
body: <p>Why i can't print all of List. I was debug the project, every data has map to list but i still can print it out. The project show me error: Could not find the correct Provider above this Consumer Widget. Please help me.</p>
  <p>Here my Screen to show the list</p>
  <pre><code>class MapScreen extends StatelessWidget {
    const MapScreen({super.key});
  
    @override
    Widget build(BuildContext context) {
      return MultiProvider(
        providers: [
          FutureProvider(
            create: (context) =&gt; GeolocatorService().getLocation(),
            initialData: null,
          ),
          ProxyProvider&lt;Position, Future&lt;List&lt;Place&gt;&gt;&gt;(
            update: (context, position, places) {
              return PlacesService()
                  .getPlaces(position.latitude, position.longitude);
            },
          )
        ],
        child: const MaterialApp(
          home: GetScreen(),
        ),
      );
    }
  }
  
  class GetScreen extends StatelessWidget {
    const GetScreen({super.key});
  
    @override
    Widget build(BuildContext context) {
      final currentPosition = Provider.of&lt;Position?&gt;(context);
      if (currentPosition != null) {
        final placeService = Provider.of&lt;Future&lt;List&lt;Place&gt;&gt;&gt;(context);
        return FutureProvider(
          create: (context) =&gt; placeService,
          initialData: const [],
          child: Scaffold(
              appBar: AppBar(
                leading: IconButton(
                    onPressed: () {
                      Navigator.pop(context);
                    },
                    icon: const Icon(Icons.arrow_back_ios_new_rounded)),
                title: const Text('Tìm nhà hàng'),
                elevation: 0,
                backgroundColor: Colors.purple,
                centerTitle: true,
              ),
              // ignore: unnecessary_null_comparison
              body: Consumer&lt;List&lt;Place&gt;&gt;(
                builder: (context, places, child) {
                  return Column(
                    children: &lt;Widget&gt;[
                      SizedBox(
                        height: MediaQuery.of(context).size.height / 3,
                        width: MediaQuery.of(context).size.width,
                        child: GoogleMap(
                          initialCameraPosition: CameraPosition(
                              target: LatLng(currentPosition.latitude,
                                  currentPosition.longitude),
                              zoom: 16.0),
                          zoomGesturesEnabled: true,
                        ),
                      ),
                      const SizedBox(
                        height: 10.0,
                      ),
                      Expanded(
                          child: ListView.builder(
                              itemCount: places.length,
                              itemBuilder: (context, index) {
                                return Card(
                                  child: ListTile(
                                    title: Text(
                                      places[index].name,
                                    ),
                                  ),
                                );
                              }))
                    ],
                  );
                },
              )),
        );
      }
      return Scaffold(
          appBar: AppBar(
            leading: IconButton(
                onPressed: () {
                  Navigator.pop(context);
                },
                icon: const Icon(Icons.arrow_back_ios_new_rounded)),
            title: const Text('Tìm nhà hàng'),
            elevation: 0,
            backgroundColor: Colors.purple,
            centerTitle: true,
          ),
          body: const Center(child: CircularProgressIndicator()));
    }
  }
  </code></pre>
  <p>Here my code to get data and map them to list. After the code map data to list done, i didn't see the code comeback to MapScreen().</p>
  <pre><code>class PlacesService {
    final key = 'AIzaSyDM32Kzq-Pz_MPorUAYxWgDX7qb3nt2S6M';
  
    Future&lt;List&lt;Place&gt;&gt; getPlaces(double lat, double lng) async {
      var response = await http.get(Uri.parse(
          'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=$lat,$lng&amp;type=restaurant&amp;rankby=distance&amp;key=$key '));
      var json = convert.jsonDecode(response.body);
      var jsonResults = json['results'] as List;
      return jsonResults.map((place) =&gt; Place.fromJson(place)).toList();
    }
  }
  
  class Place {
    final Geometry geometry;
    final String name;
    final double rating;
    final int userRatingCount;
    final String vicinity;
  
    Place(this.geometry, this.name, this.rating, this.userRatingCount,
        this.vicinity);
  
    Place.fromJson(Map&lt;dynamic, dynamic&gt; parsedJson)
        : geometry = Geometry.fromJson(parsedJson['geometry']),
          name = parsedJson['name'],
          rating = (parsedJson['rating'] != null)
              ? (parsedJson['rating'])!.toDouble()
              : 0.0,
          userRatingCount = (parsedJson['user_ratings_total'] != null)
              ? parsedJson['user_ratings_total']
              : 0,
          vicinity = parsedJson['vicinity'];
  }
  </code></pre>
  <p>And the Screen is return Center(child: CircularProgressIndicator())) all the time.</p>
  <p>The screen</p>
  <p><a href="https://i.stack.imgur.com/nz6Fx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nz6Fx.jpg" alt="" /></a></p>