[BUG] - selectedTextColorStrategy's originalTextColor ignores ColorAttributions #2093
Labels
area_super_reader
Related to SuperReader
area_supereditor
Pertains to SuperEditor
area_supertextfield
Pertains to SuperTextField
bounty_junior
f:superlist
Funded by Superlist
time: 5
type_bug
Something isn't working
Package Version
super_editor, GitHub, stable branch
User Info
coneno GmbH, QuikFlow
To Reproduce
Steps to reproduce the behavior:
Minimal Reproduction Code
Minimal, Runnable Code Sample
Actual behavior
The
selectedTextColorStrategy
, which just returns theoriginalTextColor
, returns the text color as if there were noColorAttribution
s.Expected behavior
The
originalTextColor
is provided with the ColorAttributions applied so that it reflects the actually visible color to the user and can be correctly modified to stay visible with regard to theselectionHighlightColor
. Alternatively, the Attributions should be made available in this function as a parameter, so that it can itself implement the desired behavior.Platform
macOS
Flutter version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (7 days ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
Screenshots
The text was updated successfully, but these errors were encountered: