Is there any shortcut/tool for correcting white space (tabs v spaces) in pubspec.yaml file in Flutter?

88 Views Asked by At

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?

1

There are 1 best solutions below

0
On

To add a dependency you can do

flutter pub add dependencyname

For example http package run

flutter pub add http