gtk-flutter / libadwaita

Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.
https://pub.dev/packages/libadwaita
Mozilla Public License 2.0
249 stars 19 forks source link

error adding dependency: libadwaita depends on libadwaita #72

Closed augugusto closed 2 years ago

augugusto commented 2 years ago

when I run flutter pub add libadwaita i get Because libadwaita depends on libadwaita, version solving failed. pub finished with exit code 65

If I add it to pubsec.yaml and then run flutter pub get i get Error on line 34, column 3 of pubspec.yaml: A package may not list itself as a dependency.

I've looked at libadwaitas pubsec.yaml but I do not see it as it's own dependency

prateekmedia commented 2 years ago

What is your application name in pubspec?

-------- Original Message -------- On 19 Aug 2022, 08:35, Augusto Alejandro Cognigni wrote:

when I run flutter pub add libadwaita i get Because libadwaita depends on libadwaita, version solving failed. pub finished with exit code 65

If I add it to pubsec.yaml and then run flutter pub get i get Error on line 34, column 3 of pubspec.yaml: A package may not list itself as a dependency.

I've looked at libadwaitas pubsec.yaml but I do not see it as it's own dependency

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

augugusto commented 2 years ago

You know how you sometimes go to bed and realize you are an idiot as soon as you wake up? Since i was testing libadwaita i named my project libadwaita and then tried to add libadwaita as a dependency.

I can't check right now but I bet that was the cause. Thanks for your time