https://flutter.io/using-packages/ 官方教程
Stop and restart the app, if necessary
If the package brings platform-specific code (Java/Kotlin for Android, Swift/Objective-C for iOS), that code must be built into your app. Hot reload and hot restart do this only for the Dart code of the package, so you may have to do a full restart of the app to avoid errors like MissingPluginException when using the package.
如果出現(xiàn)丟包錯(cuò)誤叛买,重新啟動(dòng)編譯器蓉驹。這里我用的vscode。