daohoangson / flutter_widget_from_html

Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.
https://pub.dev/packages/flutter_widget_from_html
MIT License
623 stars 229 forks source link

Update chewie dependency to latest #1232

Open m-haisham opened 4 months ago

m-haisham commented 4 months ago

As of writing this issue the latest chewie version is 1.8.1. The package is still using 1.0.0.

https://github.com/daohoangson/flutter_widget_from_html/blob/4671004bd1634535210122c3cbd24589a4cad92d/packages/fwfh_chewie/pubspec.yaml#L11

chewie as of v1.6.0 now relies on wakelock_plus, the flutter community maintained version of deprecated wakelock package. relying on wakelock can cause dependency conflicts due to it being unmaintained.

For reference: https://github.com/fluttercommunity/chewie/issues/722

daohoangson commented 4 months ago

Duplicated of #962

The current constraint ^1.0.0 of this package allows you to use the latest chewie@1.8.1. If your app is stuck with chewie@1.0.0, it probably has some conflict with other dependencies. Try putting chewy: ^1.8.1 directly in pubspec to identify the conflict.

anhlevfx commented 3 months ago

That's weird! I tried add chewie: ^1.8.1 as an app dependency, no conflict appear. So, flutter doesn't use the latest version of the package for some unknown reasons.

daohoangson commented 3 months ago

That's indeed weird. Normally it will pick the most recent version that satisfies all version constraints.