-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10月22日上午突然报错 #166
Comments
Flutter 1.22.2 • channel stable • https://github.com/flutter/flutter.git |
版本号是多少 |
flutter_screenutil: ^3.1.0 |
在进入的第一个页面里调用初始化方法 |
找到问题了,是我自己页面上的东西影响的初始化,谢谢了! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
之前在调试,一切正常,突然报错,错误如下
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building Builder:
Ensure to initialize ScreenUtil before accessing it.
'package:flutter_screenutil/screenutil.dart':
Failed assertion: line 31 pos 7: '_instance != null'
The relevant error-causing widget was
MaterialApp
lib/main.dart:15
When the exception was thrown, this was the stack
#2 new ScreenUtil
package:flutter_screenutil/screenutil.dart:31
#3 duSetFontSize
package:group_gate/…/utils/screen.dart:20
#4 new _SignInPageState
package:group_gate/…/sign_in/sign_in.dart:316
#5 SignInPage.createState
package:group_gate/…/sign_in/sign_in.dart:14
#6 new StatefulElement
package:flutter/…/widgets/framework.dart:4716
...
════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: