[flutter] FlutterError: Unable to load asset

Well in case you have changed everything in the indentation part as told and checked for the typo errors but still get an error then you should do this simple which worked for me and it seems this is overlooked by almost everyone

even if you have correct spacing after the assets: you still might be doinbg this one thing wrong

keep the indentation in this order

flutter: <2_spaces>assets: <no_space>- assets/images/image.png

thus it should look like this

flutter:
  assets:
  - assets/images/image.png