How to fix "Unable to load asset" error in flutter.
21.07.2020 15:21
#FLUTTER
How to fix "Unable to load asset" error in flutter.
The "Unable to load asset" error that occurs when we want to add a media to the project on Flutter is an error related to the indents.
To solve this error, we should pay attention to the indentations in the pubspec.yaml file. These indents should be as follows.
flutter:
(2 spaces or 1 tab) assets:
(4 spaces or 2 tab) - assets/images/image.jpg
After following this path, it will be seen that the problem is solved.