qiuxiang / flutter-android-window

A flutter plugin allows you to create native android floating window.
MIT License
62 stars 19 forks source link

W/InputMethodManager(13869): The current service view is not the focus view #11

Closed nickolaylo closed 2 years ago

nickolaylo commented 2 years ago

Thank you for this awesome plugin, my current issue is that the keyboard does not appear when I select any TextField widgets used to collect user input instead of plain Text, I am testing using my Huawei P20 Lite, this is the error I get:

W/InputMethodManager(32690): The current service view is not the focus view

qiuxiang commented 2 years ago

I also found this problem but there is no solution for now

nickolaylo commented 2 years ago

I also found this problem but there is no solution for now

Thank you for replying, in order for the window to get key input focus, This is the solution we must implement to enable the Keyboard Click Here, unfortunately, I have no Kotlin background; I am struggling with it 2 weeks now, maybe if you have java or Kotlin background you can fix it, Here another project fixing the problem, Could you please look at those solutions and try implementing it ?

nickolaylo commented 2 years ago

I also found this problem but there is no solution for now

Maybe It would be easier to use this Flutter plugin for manipulating Android WindowManager LayoutParams dynamically at application run-time, WindowManager used at solutions I provided in my previous comment; I will let you know if I fix it, I would appreciate any little help, Thank you

qiuxiang commented 2 years ago

u can try the new version v0.1.1

add focusable: true to open(): https://github.com/qiuxiang/flutter-android-window/blob/bd2fd41d924037126bfc95fb56320f11b9e5cc4b/example/lib/main.dart#L55

nickolaylo commented 2 years ago

u can try the new version v0.1.1

add focusable: true to open():

https://github.com/qiuxiang/flutter-android-window/blob/bd2fd41d924037126bfc95fb56320f11b9e5cc4b/example/lib/main.dart#L55

Thank you so much, Oh my God it's working, You are a hero 🌹