【文件属性】:
文件名称:flutter_localstorage::package:面向iOS的Flutter Localstorage
文件大小:182KB
文件格式:ZIP
更新时间:2021-05-05 17:54:52
dart storage localstorage flutter json-storage
本地存储
基于json的简单基于文件的存储
安装
将依赖pubspec.yaml添加到pubspec.yaml
dependencies :
...
localstorage : ^3.0.6
在您的终端中运行
flutter packages get
例子
class SomeWidget extends StatelessWidget {
final LocalStorage storage = new LocalStorage ( 'some_key' );
@override
Widget build ( BuildContext context) {
return FutureBuilder (
future : storage.ready,
builder : ( BuildContext context, snapsho