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

Provide a way to customize caret width for platforms other than desktop #1935

Closed
jellynoone opened this issue Apr 12, 2024 · 0 comments · Fixed by #2020
Closed

Provide a way to customize caret width for platforms other than desktop #1935

jellynoone opened this issue Apr 12, 2024 · 0 comments · Fixed by #2020
Assignees
Labels
area_supereditor Pertains to SuperEditor bounty_junior f:superlist Funded by Superlist time: 5 type_enhancement New feature or request

Comments

@jellynoone
Copy link

Feature description
Currently, caret width is not customizable for Android or iOS. Neither:

  • SuperEditorIosHandlesDocumentLayerBuilder or
  • SuperEditorAndroidHandlesDocumentLayerBuilder

expose these configurations.

However, DefaultCaretOverlayBuilder does:

class DefaultCaretOverlayBuilder implements SuperEditorLayerBuilder {
const DefaultCaretOverlayBuilder({
this.caretStyle = const CaretStyle(
width: 2,
color: Colors.black,
),
this.platformOverride,
this.displayOnAllPlatforms = false,
this.displayCaretWithExpandedSelection = true,
this.blinkTimingMode = BlinkTimingMode.ticker,
});

Would it be possible to offer the same customization options to iOS and Android counterparts?

User Behavior
The request doesn't ask for any additional features the user could perform. Simply, additional styling capabilities for the developer to use.
(The developer could extend these capabilities to then offer users a way to personalize the appearance of the caret if desired. Which is currently only possible if the developer chooses to rewrite the existing layers themselves.)

Feature value
Ideally, the client of the package would be able to customize small details like caret width, since these details can end up, making a big difference in feeling of the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area_supereditor Pertains to SuperEditor bounty_junior f:superlist Funded by Superlist time: 5 type_enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants