csandun
csandun

Reputation: 444

GitHub repository based dependency restore issue in Flutter using Pub get command

I am trying to restore flutter dependency using flutter pub get command. My pubspec.ymal file has google_map_location_picker dependency from the github repository. I am using below configuration in the pubspec.ymal file.

enter image description here

But I am getting git error.

enter image description here

I cleared pub-cache folder as well. But there has not good sign.

Please help me to resolve this configuration issue.

Upvotes: 1

Views: 337

Answers (1)

Prabhakaran
Prabhakaran

Reputation: 1544

You cannot use the GitHub repos as such now. Either you need to add the ssh key into your system and pass add the password and username info in the URL or simply use the HTTPS URL like below.

google_map_location_picker:
    git: https://www.github.com/Lyokone/google_map_location_picker.git

Upvotes: 2

Related Questions