Add a `Slider` dialog when FontSize is pressed to adjust the font size
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.
8to72) - Reflect the currently selected font size
- Update the font size live using
CanvasCubit.changeFontSize
Approach to be followed
- Refactor
_showFontSizeDialoginsideFontControls - Wrap the slider inside a
StatefulBuilderto allow dynamic UI updates - Use the parent context to access the
CanvasCubitfor 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.
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.
please assign me this @may-tas
@PearlGrell Go ahead, but don't remove the existing +/-, keep them also.
@PearlGrell Go ahead, but don't remove the existing +/-, keep them also.
Sure @may-tas , thanks