zefyr
zefyr copied to clipboard
The toolbar is obscured by the keyboard when in a child page
The toolbar is obscured by the keyboard when in a child page.
Steps to Reproduce
- Add the zefyr editor widget in one page;
- Use "Navigator.of(context).push" to jump to the page;
- The toolbar is obscured by the keyboard.
Why did you close it ? I also have the same issue.
@woodstream did you find a fix for this?
@adeolaex did you find a fix for this?
@akshatjagga Sadly no. I have long dropped the package :(
Reopening this so that we don’t forget to investigate.
@pulyaevskiy , really glad to see you active :-)
@pulyaevskiy thanks for taking a look at this!
Well,I closed it because this way work well for me.
Put the zefyr editor widget in Scaffold, and must set resizeToAvoidBottomPadding
to true:
Scaffold(
resizeToAvoidBottomPadding: true,
I think the problem might be caused due to the nesting of scaffolds.
@akshatjagga Do you have a try?When I met this problem, I tried many methods to solve it。It worked well until I updated a version of Flutter SDK, so I suspected it was resulting from SDK at last。I updated the latest version of Flutter SDK and it still not work,until I set ”resizeToAvoidBottomPadding“ to true(Maybe my other operation solved the problem ). Update the Flutter SDK and set ”resizeToAvoidBottomPadding“ to true,maybe not work for you,but for others。
@woodstream resizeToAvoidBottomPadding doesn’t fix it for me. My ZefyrScaffold is inside a column if that’s relevant.
The solution I arrived at was to use Container box constraints and move the ZefyrScaffold up the tree:
Scaffold(
body: Container(
constraints: BoxConstraints.expand(),
child: ZefyrScaffold(
child: SingleChildScrollView(
/* my editor is second child of column in scrollview */
We already solved this problem at https://github.com/singerdmx/flutter-quill
We already solved this problem at https://github.com/singerdmx/flutter-quill
I had used Flutter-Quill instead of Zefyr long before, haha。Maybe at the v0.2.0 of Flutter-Quill.
@woodstream you probably should upgrade to 1.2.1. Your version is too old
@singerdmx It was updated to v3.0 two month ago, I can't upgrade to v1.2.1 because Flutter 2.0 not work well for me.