在Android中,如果我有想要在会话中持久保存的信息,我知道我可以使用SharedPreferences或创建SQLite数据库,甚至可以将文件写入设备并在以后阅读.
有没有办法只使用Flutter保存和恢复这样的数据?或者我是否需要为服务示例中的Android和iOS编写特定于设备的代码?
我正在使用 flutter for web 构建一个 web 应用程序,我确信在 flutter 的移动版本中有一种方法可以在设备中存储数据,但我不知道这是否甚至在 web 的 flutter 中实现了。
我每次打开都会收到此警告VS code。有什么办法可以解决这个问题吗?谢谢。
我添加了这个警告的日志。我尝试过flutter clean和flutter doctor,一切都很好,但每次打开 VS Code 时仍然出现此警告。我还遇到了一个问题,VS Code 没有显示任何设备,也没有状态栏,但是当我运行flutter devices时,它显示有 3 个活动设备。谢谢。
\n[12:07:27 pm] [General] [Info] C:\\Program Files\\Intel\\iCLS Client\\bin\n[12:07:27 pm] [General] [Info] C:\\windows\\system32\n[12:07:27 pm] [General] [Info] C:\\windows\\system32\\bin\n[12:07:27 pm] [General] [Info] C:\\windows\n[12:07:27 pm] [General] [Info] C:\\windows\\bin\n[12:07:27 pm] [General] [Info] C:\\windows\\System32\\Wbem\n[12:07:27 pm] [General] [Info] C:\\windows\\System32\\Wbem\\bin\n[12:07:27 pm] [General] [Info] C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n[12:07:27 pm] [General] [Info] C:\\windows\\System32\\WindowsPowerShell\\v1.0\\bin\n[12:07:27 pm] [General] [Info] C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common\n[12:07:27 pm] [General] [Info] C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common\\bin\n[12:07:27 pm] [General] [Info] …Run Code Online (Sandbox Code Playgroud)