0

I am getting errors while adding dependencies in the pubspec.yaml file in Flutter project.

Is there any tool or IDE/command line shortcut for editing/correcting/validating the White spaces in the pubspec.yaml file?

Sweta Jain
  • 3,248
  • 6
  • 30
  • 50
  • Configure your editor to convert tabs to spaces or use a tool like [`expand`](https://linux.die.net/man/1/expand) to do the conversion. – jamesdlin Aug 18 '22 at 17:42

1 Answers1

0

To add a dependency you can do

flutter pub add dependencyname

For example http package run

flutter pub add http
Kaushik Chandru
  • 15,510
  • 2
  • 12
  • 30