hoc081098 / flutter_google_places_hoc081098

Better flutter_google_places, updated by @hoc081098
https://pub.dev/packages/flutter_google_places_hoc081098
Other
17 stars 33 forks source link

Something is wrong with pug get version #4

Closed fred-jvet closed 3 years ago

fred-jvet commented 3 years ago

Hi,

I have an error on dependencies

dependencies: flutter: sdk: flutter flutter_google_places_hoc081098: ^1.0.0-nullsafety.0

Error on line 18, column 10 of pubspec.yaml: "version" field must have three numeric components: major, minor, and patch. Instead of "0.1", consider "0.1.0". ╷ 18 │ version: 0.1 │ ^^^ ╵ pub get failed (65; ╵)

hoc081098 commented 3 years ago

Check this commit: https://github.com/hoc081098/Movie-Ticket-Booking/commit/05d568d137d094ec9ca4c124f62b0fb28b3096af. It works well. Can you provide some lines of pubspec.yaml

fred-jvet commented 3 years ago

Thanks you for helping

I 'm in learning mode :)

I would like to see the exemple works, so i put simply the dependencies

name: distance_calculator_2
description: Learning

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 0.1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_google_places_hoc081098: ^1.0.0-nullsafety.0

  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

  uses-material-design: true
hoc081098 commented 3 years ago

Hey @fred-jvet , I have found your problem. It should be version: 0.1.0+1 instead of version: 0.1 :))

name: distance_calculator_2
description: Learning
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.1.0+1
fred-jvet commented 3 years ago

Oh...

I focused on a bad thing

World Record... a good story for the aperitif

i go out... :))

Thanks ;)