How can i access to transitive dependencies to update them in flutter

Viewed 1159

when i run pub upgrade i am getting these tips which they are out of the date but don't know where could i update them .. i even don't have them in my normal dependencies

enter image description here

could please anyone tell me what is this and how can i update them ?

i tried to update everything .. dependencies, gradle Android studio flutter sdk i all have them up to date but these still pop up when i run pup upgrade

2 Answers

"Transient dependency" means your program depends on it, because of a dependency you have that depends on it. So in other words, a package you use uses for example async 2.8.2. There is little you can do other than waiting for that package owner to update their package, so you can update that package.

To find out which of your dependencies uses which other dependency, you can run:

flutter pub deps

It will show you a dependency tree with version numbers.

1- If you need to update specific package of transitive dependencies run this command with replace package_name to specific package name:

flutter pub upgrade package_name

2- To update to the latest compatible versions of all the dependencies listed in the pubspec.yaml file includes transitive dependencies run this command:

flutter pub upgrade

Related