adaptant-labs/flutter_windowmanager

Black Screen when using flutter_windowmanager with flutter_pdfview in oppo devices only

Closed this issue · 6 comments

I am using flutter_pdfview package
I found a black screen with it in oppo devices only , in all other devices it works perfectly.

dependencies:
flutter_pdfview: ^1.0.4
flutter_windowmanager: ^0.0.2

Function which called in main() to apply on the whole app
Future secure() async {
await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
}

This is my flutter doctor -v

[√] Flutter (Channel unknown, 1.22.1, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 1.22.1 at C:\flutter
    • Framework revision f30b7f4db9 (6 months ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

 
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\abas\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
PS C:\Users\abas\Documents\GitHub\online_education> flutter doctor -v
[√] Flutter (Channel unknown, 1.22.1, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 1.22.1 at C:\flutter
    • Framework revision f30b7f4db9 (6 months ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\abas\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.55.1)
    • VS Code at C:\Users\abas\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (2 available)
    • CPH1911 (mobile)            • LBBQSCQCKRIZTC4H • android-arm64 • Android 10 (API 29)
    • sdk gphone x86 arm (mobile) • emulator-5554    • android-x86   • Android 11 (API 30) (emulator)

! Doctor found issues in 1 category.

Any solution ?

As this package simply toggles a flag at the Android level, you may have encountered an Android bug for this particular device. I would suggest trying to reproduce this using native Android code and if the problem persists, file a bug with the device manufacturer. If you're not sure how to do this natively, take a look at the onMethodCall() function in android/src/main/java/io/adaptant/labs/flutter_windowmanager/FlutterWindowManagerPlugin.java.

Any solution ?

I meet the same problem, any way to resolve this?

Any solution ?

Same question on oppo devices.

Any solution ?

Same question on oppo devices.
advance_pdf_viewer

There is an on-going issue tracking this specific problem at flutter/flutter#62333

At this point, it appears to be a device-specific bug, so you should escalate this with your device manufacturer. I will tentatively close this issue here for now, but feel free to re-open should there be new information to go on.