Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header style dropdown not showing when keyboard is up/real device: QuillToolbarSelectHeaderStyleDropdownButton #1838

Open
1 task done
yassinsameh opened this issue Apr 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yassinsameh
Copy link

yassinsameh commented Apr 28, 2024

Is there an existing issue for this?

Flutter Quill version

9.3.9

Steps to reproduce

Code to reproduce place the QuillToolbar in a KeyboardActions, when the header style is selected the dropdown actions will only show if the keyboard is down so real devices fail, reproducible on IOS simulator when soft keyboard is toggled.

Keyboard down (Works):

Keyboard up (Does not work):

Expected results

Both scenarios should show the header style selection dropdown.

Actual results

Dropdown is only showing when the keyboard is down.

Code sample

Code sample

Code:

return KeyboardActions(
                    config: KeyboardActionsConfig(
                      nextFocus: false,
                      actions: [
                        KeyboardActionsItem(
                            toolbarButtons: [
                              (node) {
                                return SizedBox(
                                  width: 100.w,
                                  child: Row(
                                    mainAxisSize: MainAxisSize.max,
                                    children: [
                                      Flexible(
                                        child: QuillToolbar(
                                          configurations: const QuillToolbarConfigurations(
                                            sharedConfigurations: QuillSharedConfigurations(
                                                // locale: Locale('de'),
                                                ),
                                          ),
                                          child: SingleChildScrollView(
                                            scrollDirection: Axis.horizontal,
                                            child: Row(
                                              children: [
                                         
                                                QuillToolbarSelectHeaderStyleDropdownButton(
                                                  controller: _controller,
                                                ),
                                             
                                              ],
                                            ),
                            
                                    ],
                                  ),
                                );
                              }
                            ],
                            focusNode: keyboardFocusNode,
                            displayDoneButton: false,
                            displayArrows: false),
                      ],
                    ),
                    child: SingleChildScrollView(
                        child: Stack(
                            children: [
                              QuillEditor.basic(
                                  focusNode: keyboardFocusNode,
                                  configurations: QuillEditorConfigurations(
                                    unknownEmbedBuilder: CustomEmbedBuilder(),
                                    controller: _controller,
                                    readOnly: false,
                                    sharedConfigurations: const QuillSharedConfigurations(
                                      dialogTheme: QuillDialogTheme(),
                                    ),
                                  )),],)]

Screenshots or Video

No response

Logs

No response

@yassinsameh yassinsameh added the bug Something isn't working label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant