解决闪屏页卡主和github登录无效的问题

This commit is contained in:
zxx
2019-09-09 15:56:28 +08:00
parent 212d746c48
commit 47e4be0b94
2 changed files with 3 additions and 2 deletions

View File

@ -203,6 +203,7 @@ void _startupJpush() async {
}
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final provider = new Provider();
await provider.init(true);
sp = await SpUtil.getInstance();

View File

@ -137,7 +137,7 @@ class _LoginPageState extends State<LoginPage> {
if (value.isEmpty) {
return "登录名不可为空!";
}
return ' ';
return null;
},
onSaved: (value) {
setState(() {
@ -180,7 +180,7 @@ class _LoginPageState extends State<LoginPage> {
if (value == null || value.isEmpty) {
return "密码不可为空!";
}
return '';
return null;
},
onSaved: (value) {
setState(() {