mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-14 09:54:27 +08:00
refactor:按照代码规范调整import 文件
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user