fluttercommunity/flutter_google_places

no class named Prediction

Nisthar opened this issue · 1 comments

I am using the example code:

Prediction p =  await PlacesAutocomplete.show(
            context: context,
            apiKey: googleApiKey,
            mode: Mode.overlay,
            language: "en",
            logo: Container(height: 0),
            radius: 100000)
        .catchError((error) {
      print(error);
    });

It shows error there is no class named Prediction.

oh i forgot to import import 'package:google_maps_webservice/places.dart';