memspace/zefyr

ListView doesn't scroll to ZefyrField when the software keyboard activates

JacobWrenn opened this issue · 9 comments

I have a ListView containing a TextField and a ZefyrField.

When I click into the TextField, the ListView scrolls up to ensure it isn't covered by the keyboard.

However, when I click into the ZefyrField, the ListView does nothing and therefore the ZefyrField gets covered by the keyboard.

The ZefyrField should scroll the ListView to respond to the keyboard in the same way the TextField does.

web or mobile?

On mobile. Specifically, iOS is where I am testing this.

Do you want to give https://github.com/singerdmx/flutter-quill a try to see if you still have the issue?
I am unsure what the issue is

Screen recordings showing the desired behaviour of TextField and the contrasting behaviour of ZefyrField.

Screen.Recording.2021-02-16.at.11.34.23.mov
Screen.Recording.2021-02-16.at.11.35.18.mov

I think I found a solution to this

https://stackoverflow.com/questions/60235386/is-it-possible-to-force-smooth-implicit-scrolling-for-flutters-accessibility-fo

We can call showOnScreen using _lastTapDownPosition

@override
handleTapDown(TapDownDetails details) {
  _lastTapDownPosition = details.globalPosition;
}

Hello , we have fixed this issue on our repo, you can check the change here : singerdmx/flutter-quill@471c1cb. Thanks!

Hello , we have fixed this issue on our repo, you can check the change here : singerdmx/flutter-quill@471c1cb. Thanks!

Hey, are you making an attempt to get this fix merged into this repo as it's the official one and v1 is in development?