Today, I will fix the error variants found for the asset, this error is faced by beginners. Really an error due to carelessness, Now go to the file pubspec.yaml and edit. There are 2 possibilities. Check the indentation of assets. Generally, it should have 3 spaces from the start of the new line. In my case, the problem was that I was missing slash /. At first, I have added my icons path as below.
I solved the issue by adding a slash / to the end of the path as below
I'd love it if you'd support me:
Paypal: https://www.paypal.me/swdsang
BuyMeaCoffee: https://www.buymeacoffee.com/devsang
Momo: 0924205945
#flutter #flutterdeveloper #flutterflow #flutterfirebase
Смотрите видео Flutter: Fix No File or Variants Found for Asset 2023 [Solved] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dev Sang (Sang Nè) 18 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,293 раз и оно понравилось 14 людям.