refactor:按照代码规范调整import 文件

This commit is contained in:
ryan
2019-02-19 18:24:11 +08:00
parent 8895243a87
commit bc8478f65e
5 changed files with 66 additions and 55 deletions

View File

@ -10,7 +10,7 @@ import 'package:flutter_go/views/first_page/first_page_item.dart';
import 'package:flutter_go/components/disclaimer_msg.dart';
import 'package:flutter_go/utils/net_utils.dart';
GlobalKey<DisclaimerMsgState> key;
// ValueKey<String> key;
class FirstPage extends StatefulWidget {
@override
@ -20,6 +20,7 @@ class FirstPage extends StatefulWidget {
class FirstPageState extends State<FirstPage> with AutomaticKeepAliveClientMixin{
Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
Future<bool> _unKnow;
GlobalKey<DisclaimerMsgState> key;
@override
bool get wantKeepAlive => true;
@ -30,6 +31,7 @@ class FirstPageState extends State<FirstPage> with AutomaticKeepAliveClientMixin
super.initState();
if (key == null) {
key = GlobalKey<DisclaimerMsgState>();
// key = const Key('__RIKEY1__');
//获取sharePre
_unKnow = _prefs.then((SharedPreferences prefs) {
return (prefs.getBool('disclaimer::Boolean') ?? false);