A dependency may only have one source.

Flutter is an open-source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase. Many New Developers Facing Issue while Developing their first app. So we Find Solutions, especially for the new flutter developers.

A dependency may only have one source.

┌ SDK: flutter
│ webview_flutter: ^2.0.9
│ # encourage good coding practices. The lint set provided by the package is
│ # activated in the analysis_options.yaml file located at the root of your
│ # package. See that file for information about deactivating specific lint
│ # rules and activating additional ones.
│ flutter_lints: ^1.0.0

Solution of A dependency may only have one source:

Follow these steps below:

  • Open your project in IDE.
  • Go to “pubspec.yaml”.
  • Search for Dependencies and then SDK: Flutter
  • and write your dependency for example “webview_flutter: ^3.0.0”

To Find your required dependency go to PUB.DEV

1 thought on “A dependency may only have one source.”

Leave a Comment