bazrafkan / google_place

A new Flutter package for handle google place api
MIT License
84 stars 122 forks source link

Remove 'dart:ui' dependency #24

Closed olifly closed 2 years ago

olifly commented 3 years ago

Hi.

As of version 0.4.0 you can't use this library on the standard dart VM due to it depending on the dart:ui package.

Running code on on the standard dart VM (dart run <source.dart>) that uses this library gives you the following error:

../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart:1:8: Error: Not found: 'dart:ui'
import 'dart:ui';
       ^
../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart:32:23: Error: The method 'hashValues' isn't defined for the class 'LatLon'.
 - 'LatLon' is from 'package:google_place/src/models/lat_lon.dart' ('../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart').
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
  int get hashCode => hashValues(latitude, longitude);
bazrafkan commented 2 years ago

I already remove dart:ui from dependency in 0.4.2 version