You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an issue with the flutter_screenutil package in my Flutter application. When running the app in debug mode, everything works as expected. However, upon building and installing the app in release mode, the text becomes invisible when the app is reopened after being closed. The issue appears to be related to the flutter_screenutil package, as removing this package resolves the problem.
Steps to Reproduce:
Integrate the flutter_screenutil package into a Flutter project.
Build the app in debug mode and verify that text is visible and displayed correctly.
Build and install the app in release mode.
Open the app, close it, and then reopen it.
Observe that text is not visible upon reopening.
Expected Behavior:
Text should be visible and properly rendered in release mode, even after reopening the app.
Actual Behavior:
Text is not visible when the app is reopened in release mode.
KXwonderful
i hope this solves your problem @KXwonderful
Future main() async {
WidgetsFlutterBinding.ensureInitialized();
await ScreenUtil.ensureScreenSize(); //add this line this fix fi for me in your main.dar
runApp(const MyApp());
}
Activity
KXwonderful commentedon Aug 30, 2024
I have also encountered a similar problem.How did you solve it later?@tamremariam
tamremariam commentedon Aug 31, 2024