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
font size gets zero in release mode. #130
Comments
2.1 I have tested it in the release test, and see if some necessary steps have not been performed.Because the version difference is too large, please take a look at the api |
Same issue, maybe is beacuse the use of MediaQueryData.fromWindow(window) instead of MediaQuery.of(context) in recent versions. |
I had the same issue, the fix was to move my Update: The above change did fix the issue in iPhone 6s+ but not iPhone 11.
|
me too, in the first widget appBar not displayed,second widget no problem |
Can you show the code? |
`void main() { class MyApp extends StatefulWidget { class _MyAppState extends State { @OverRide @OverRide `class HomePageWidget extends StatelessWidget { HomePageWidget({Key key}) : super(key: key) { @OverRide void openSplash(BuildContext context) async { BottomNavigationBarItem not displayed,appBar InspirationListWidget `class InspirationListWidget extends StatelessWidget { @OverRide |
i also used it in main. and added it in the theme but it didn't work. i guess we have to use it after the material app in next widget like in 2nd widget after material app as before than only it works even if it don't required the context. |
Yes, although the context parameter is not needed, it actually needs to wait until dart obtains the screen data, generally this is when the context is obtained |
@dufei816 |
@lizhuoyuan 我也是遇到了 测试机型 iphone 11 pro max . 手机上只有布局 没有文字 布局上的文字一个也显示不了 |
@lizhuoyuan 加延时运行可以解决此问题 |
Hello everyone, I already have a plan to use ScreenUtil in MyApp. sorry, This solution doesn’t work, damn flutter ,can not use ScreenUtil in MyApp. |
I resolved this at 2.3 |
@Timus23 did you do this? I had the same issue as you but after doing this, it was fixed in release mode. |
simply use This version works well |
Flutter version : 1.17.5
Library version: 2.1.0
till version 1.1.0 where context was used it was working fine. after that i upgraded to version 2.1.0 than in debug mode it is working fine but when i build release apk all the font size turns into zero.
The text was updated successfully, but these errors were encountered: