title: Error: shared_preferences_platform_interface-1.0.3/pubspec.yaml: Missing the required "name" field
body: <p>I am getting the following errors on <a href="https://pub.dev/packages/shared_preferences" rel="nofollow noreferrer">shared_preferences</a> package while performing <code>flutter pub get</code> I had also opened an <a href="https://github.com/flutter/flutter/issues/51403" rel="nofollow noreferrer">issue</a> on Github a month ago but, I wasn't lucky to get any proper solution. </p>
  
  <pre><code>Error on line 1, column 1 of ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_platform_interface-1.0.3/pubspec.yaml: Missing the required "name" field.
  Running "flutter pub get" in numbertrivia...                            
  pub get failed (65; Error on line 1, column 1 of
  ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_platform_interface-1.0.3/pubspec.yaml: Missing
  the required "name" field.)
  </code></pre>