TextEditingApp icon indicating copy to clipboard operation
TextEditingApp copied to clipboard

Add a `Slider` dialog when FontSize is pressed to adjust the font size

Open PearlGrell opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

At present, font size adjustments in the app are limited to + and – buttons. While functional, this approach is limited in precision and speed. Users may find it tedious to tap repeatedly to reach a desired size, especially when larger jumps are needed.


Describe the solution you'd like

Introduce a Slider widget inside the font size dialog (triggered by tapping the size number) to allow smoother, more direct font size control.

The slider should:

  • Range between a sensible min and max (e.g. 8 to 72)
  • Reflect the currently selected font size
  • Update the font size live using CanvasCubit.changeFontSize

Approach to be followed

  • Refactor _showFontSizeDialog inside FontControls
  • Wrap the slider inside a StatefulBuilder to allow dynamic UI updates
  • Use the parent context to access the CanvasCubit for font size changes
  • Keep the existing +/– buttons as optional fallback if desired

Additional context

This change is aimed at improving UX consistency and aligning with industry-standard design tools that offer sliders for font control.

PearlGrell avatar Jul 26 '25 20:07 PearlGrell

Thank you for opening this issue! 🚀 Our team will review it soon. Please make sure you've included all relevant details and followed our Contributing Guidelines. For questions about our project, check out our README and Code of Conduct.

github-actions[bot] avatar Jul 26 '25 20:07 github-actions[bot]

please assign me this @may-tas

PearlGrell avatar Jul 26 '25 20:07 PearlGrell

@PearlGrell Go ahead, but don't remove the existing +/-, keep them also.

may-tas avatar Jul 26 '25 20:07 may-tas

@PearlGrell Go ahead, but don't remove the existing +/-, keep them also.

Sure @may-tas , thanks

PearlGrell avatar Jul 26 '25 20:07 PearlGrell