Powers issue
Prashanthkumar1998 opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
1
Steps to reproduce
on click x powers and entering values power is not displaying as excepted.
Expected results
x²
Actual results
x2
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
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,
)))),