Alexey Orlov
Alexey Orlov

Reputation: 2804

Flutter: check "Ensure you are using Package x.y.z+" requirement

Is there a straightforward way to check a particular installed package? I tried help for pub and flutter, then Google; still nothing.

I can look up pubspec.yaml, of course, but it is a requirement, not the actual package installed. There must be a way.

Upvotes: 0

Views: 856

Answers (1)

Ernesto Campohermoso
Ernesto Campohermoso

Reputation: 7371

In dart the command to view all dependencies is:

pub deps

In flutter:

flutter pub pub deps

In order to filter a dependency in particular you can use grep, by example:

flutter pub pub deps | grep flutter_secure_storage

Upvotes: 5

Related Questions