TextSelectionThemeData

cursorColor:

Colors

red

selectionColor:

Colors

green

selectionHandleColor:

Colors

blue

Default changes

If you weren’t using these properties explicitly,
but depended on the previous default colors used
for text selection you can add a new field to your
ThemeData for your app to return to the old defaults
as shown:

// Old defaults for a light theme

ThemeData

textSelectionTheme:

TextSelectionThemeData

cursorColor:

const

Color

fromRGBO

66

133

244

1.0

),

selectionColor:

const