Debug vs Release
I created a flutter app and tested it on ios and android emulator and it’s working perfectly fine but when I published it to Google play store the ui is totally different and not working why is that?
I tried flutter pub clean, it didn’t work, I removed the unused dependencies and finally I manually added the apk file on my phone (I thought the problem was witb the aab)
2
Answers
I hade one dependency that wasn't compatible with android debug vs release
now the app now works only on Samsung series A but on the other it doesn't work or only opens once and then I get the same problem
the issue was caused by get package in the dimensions file I was using
screenHeight = get.height; screenWidth = get.width;
I changed it to material package
I added this to the dimention package
}
and this in the main
Widget build(BuildContext context) {
Dimensions.init(context);