highlight.dart icon indicating copy to clipboard operation
highlight.dart copied to clipboard

feat: selectable text

Open shreyas1599 opened this issue 4 years ago • 5 comments

will close #24 and git-touch/git-touch#204 @pd4d10 is this okay or should it be made a flag for the user to enable?

shreyas1599 avatar Jun 17 '21 09:06 shreyas1599

Can this change be merged? I would love to have the highlighted code selectable.

CubeDr avatar Aug 03 '21 04:08 CubeDr

It would be nice to merge this !

ShiroYacha avatar Feb 15 '22 23:02 ShiroYacha

Hi, any update on this?

Nirajn2311 avatar Oct 22 '22 01:10 Nirajn2311

@pd4d10 It seems there are many people who would benefit from this, myself included... would you be able to provide some insight into what's holding up the merge? Thanks!

krejko avatar May 28 '23 14:05 krejko

This is not the right way to do this. There are use cases where selectability is not desired.

The consumer of this package should be able to choose whether the text is selectable or not. The way to do that is by replacing RichText with Text.rich (the latter sets up the appropriate selection machinery) or supply appropriate values for selectionRegistrar and selectionColor to RichText. Either of these will let consumers determine selectivity by e.g. wrapping with SelectionArea.

amake avatar Sep 19 '23 23:09 amake