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
Watch video Flutter: Fix No File or Variants Found for Asset 2023 [Solved] online without registration, duration hours minute second in high quality. This video was added by user Dev Sang (Sang Nè) 18 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,293 once and liked it 14 people.