mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-03 22:35:24 +08:00
解决闪屏页卡主和github登录无效的问题
This commit is contained in:
@ -203,6 +203,7 @@ void _startupJpush() async {
|
||||
}
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
final provider = new Provider();
|
||||
await provider.init(true);
|
||||
sp = await SpUtil.getInstance();
|
||||
|
@ -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(() {
|
||||
|
Reference in New Issue
Block a user