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

Add a new feature Change Text Scale to text editor. #14

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

lvsecoto
Copy link
Contributor

Hello~ I also add a new feature to text editor.

A text scale button will be shown next to text align button. We can change text scale or reset to the pre-set value.

And these config has changed:

textEditorConfigs

Property Description Default Value
canChangeFontScale Determines if the font scale can be change. true
initFontScale The initial font scale for text. 1.0
maxFontScale The max font scale for text. 3.0
minFontSize The min font scale for text. 0.3

i18n textEditor

Property Description Default Value
fontScale Text for the "Font Scale" setting 'Font Scale'

icons textEditor

Property Description Default Value
fontScale The icon for changing font scale. Icons.format_size_rounded
resetFontScale The icon for resetting font scale to preset value. Icons.refresh_rounded

lvsecoto and others added 5 commits March 14, 2024 15:06
remove unused import
…nt scale`

- Introduce `Change font scale` functionality in the text editor module, allowing users to adjust font sizes dynamically.
- Update CHANGELOG.md to document the new feature and other changes.
- Increment version in pubspec.yaml to 2.4.6 to reflect the new feature addition and updates.
@hm21 hm21 merged commit f87dc5e into hm21:stable Mar 14, 2024
1 check passed
@hm21
Copy link
Owner

hm21 commented Mar 14, 2024

Excellent work once again! Thank you very much for this feature.

@Kora3 Kora3 mentioned this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants