It happens multiple time while developing with flutter. Steps which I usually do to solve this kind of issue:
->Restart the IDE and run pub get again (it works sometime).
->Run flutter clean, and re-run the App(It clears build cache of the App). It worked in most of the cases.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.