Skip to content

SelectableText should have a selectionColor property #162165

@lucas-goldner

Description

@lucas-goldner

Use case

If a Text can have a selectionColor, then a SelectableText should also be able to set this property, to set the color it should display when being selected.

Proposal

I should be able to set a selection color for SelectableText

const SelectableText('Selectable Text') // No selectionColor

Image

 const SelectionArea(
              child: Text(
                'Text wrapped in SelectionArea',
                selectionColor: Colors.red,
              ),
            )

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions