Skip to content

Spellcheck text selection styling doesn't look right in CupertinoTextField #124404

@leighajarett

Description

@leighajarett

When you select a misspelled word in a CupertinoTextField, the styling is the same as other text selection (uses the little bars with the circle, and a color supplied by the theme).

Apr-07-2023 12-25-07

However, on a UIKit/SwiftUI app, if you select a misspelled word, no bars are used and the highlight color is red.

Hfgbgb

When speaking with developers, text input is something that has been raised as important to "feel native." So, setting the default styling to match native iOS would be great. But, there might be cases where someone wants to customize this styling. Ideally we expose APIs in this widget to control the styling of the selection, and have the default values match those on iOS (maybe this already exists, but I couldn't tell how to do it from a quick glance).

However, given that it's difficult to adapt between CupertinoTextField and TextField, we might consider leveraging TextField for all platforms, but ensure we can add capabilities to match platform-specific styling and behaviors.

cc: @MitchellGoodwin @camsim99

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsf: cupertinoflutter/packages/flutter/cupertino repository

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions