GetStream / flutter-samples

A collection of sample apps that use Stream
https://getstream.io/chat/docs/flutter-dart/
MIT License
301 stars 126 forks source link

Issue with dependency_overrides.yaml in stream_chat_v1 #99

Open ChefQ opened 6 months ago

ChefQ commented 6 months ago

When i run: flutter pub get.

Flutter tries to load packages from Github: https://github.com/GetStream/stream-chat-flutter.git

However, in the dependency_overrides.yaml file, they set ref as "develop", but there isn't a "develop" branch in the GitHub repo: https://github.com/GetStream/stream-chat-flutter.git

There is a master branch, so I decided to change the refs from "develop" to "master."

Then I got a versioning issue: uuid: ^3.0.7 is not compatible.

After I fixed the versioning issue, I noticed that some of the widgets and functions used in the code base didn't exist.

Finally, to solve this issue, I simply deleted the dependency_overrides, and it worked fine.

However, I am not sure if the authors of the app intended for this:

Original error message:

Because example depends on stream_chat_localizations from git which doesn't exist (Could not find git ref 'develop' (fatal: ambiguous argument 'develop': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]')), version solving failed.

WingCH commented 3 months ago

can remove this file pubspec_overrides.yaml