2019年12月24日

flutter shared_preferences相当于iOS的UserDefaults 安卓的SharedPreferences

摘要: import 'dart:async'; import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; void main() { runApp(new MaterialApp(home: new MyApp())); } class MyAp... 阅读全文

posted @ 2019-12-24 10:11 高彰 阅读(811) 评论(0) 推荐(0)

Because flutteroc depends on Shared preferences plugin any which doesn't exist (could not find package Shared preferences plugin at https://pub.flutter-io.cn), version solving failed.

摘要: 出现这个问题本质原因是找不到第三方的库基本可以确认库的名字错了 1.库名中有空格请用"_"替换; 2.库名多了少了前后缀(多了少了s呀,ea不分呀); 3.库名大小写问题; 阅读全文

posted @ 2019-12-24 09:59 高彰 阅读(1493) 评论(0) 推荐(0)

导航