binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
118 stars 67 forks source link

Inverted Square Colors #45

Open AndreDrummer opened 3 years ago

AndreDrummer commented 3 years ago

Large inverted frames appearing when loading PDF from URL.

101652746-5f2a4380-3a1d-11eb-95c7-d53827604e81

AndreDrummer commented 3 years ago

This does not solved the problem. endigo/flutter_pdfview#123

And I'm not using night mode.

moazelsawaf commented 2 years ago

Disable the Dark Mode for the app in your Android or disable it in the whole system and see if the problem gone.

I face the same error with MIUI in my phone POCO X3 PRO and after debugging, I discovered that it was because MIUI forces applications to use Dark Mode by intercepting the views before they was drawn in the screen, which is override the Flutter theming used.

There is a solution for that problem which is to disable the Force Dark Mode in the Android, I tried it but it doesn't work in my device, but worked for others in the internet, check it from here: https://stackoverflow.com/questions/67589738/turn-off-xiaomi-miui-dark-mode-in-flutter-webview

singhmanav001 commented 2 years ago

Facing the same issue, is there any other solution? @AbdOoSaed