title: Error on line 17, column 5 of pubspec.yaml: A dependency may only have one source
body: <p>Added http package in the pubspec file and getting the error as :A dependency may only have one source, shown in the image below too.</p>
  
  <p><a href="https://i.stack.imgur.com/5swJm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5swJm.png" alt="enter image description here"></a></p>
  
  <p>Please help me how to resolve that issue.</p>
  
  <p>Thanks.</p>