singerdmx / flutter-quill

Rich text editor for Flutter

Home Page:https://pub.dev/packages/flutter_quill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Powers issue

Prashanthkumar1998 opened this issue · comments

Is there an existing issue for this?

Flutter Quill version

1

Steps to reproduce

on click x powers and entering values power is not displaying as excepted.

Expected results

Actual results

x2

Code sample

Code sample
[Paste your code here]
ki

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

ii

Logs

Logs
[Paste your logs here]
;lii

I have found code commented out in the 'example' application to be helpful in these cases:
File = my_quill_toolbar.dart
Under section: configurations: QuillSimpleToolbarConfigurations(
Uncomment:
// buttonOptions: QuillSimpleToolbarButtonOptions(
// base: QuillToolbarBaseButtonOptions(
// afterButtonPressed: focusNode.requestFocus,

This forces the focus to return to the editor when you click a toolbar button.

Your code should look like:
return QuillToolbar.simple(
configurations: QuillSimpleToolbarConfigurations(
buttonOptions: QuillSimpleToolbarButtonOptions(
base: QuillToolbarBaseButtonOptions(
afterButtonPressed: focusNode.requestFocus,
)))),