提交 84afbba1 authored 作者: 张国庆's avatar 张国庆

增加sp工具

上级 e4fdeb72
## 0.0.1
* 增加toast、log打印工具
* 增加toast、log打印工具、sp工具
......@@ -33,3 +33,14 @@ ToastUtil.showToast('toast');
logger.i('log');
```
#### 3.3 Sp
```dart
// 保存
SpUtil.putString('key', 'value');
// 获取
SpUtil.getString('key');
```
export 'package:sp_util/sp_util.dart';
\ No newline at end of file
......@@ -10,4 +10,6 @@
// Compare this snippet from lib/log_utils.dart:
export 'log_utils.dart';
// Compare this snippet from lib/toast_util.dart:
export 'toast_util.dart';
\ No newline at end of file
export 'toast_util.dart';
// Compare this snippet from lib/clx_flutter_sp.dart:
export 'clx_flutter_sp.dart';
\ No newline at end of file
......@@ -13,6 +13,7 @@ dependencies:
plugin_platform_interface: ^2.0.2
fluttertoast: 8.2.4
logger: 2.0.2
sp_util: 2.0.3
dev_dependencies:
flutter_test:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论