TextSelectionTheme migration

Summary

Context

Migration guide

Timeline

References

Summary

The ThemeData properties that controlled the look of
selected text in Material widgets have been moved into
their own TextSelectionTheme. These properties include
cursorColor, textSelectionColor, and
textSelectionHandleColor. The defaults for these
properties have also been changed to match the Material
Design specification.

Context

As part of the larger Material Theme Updates,
we have introduced a new Text Selection Theme
used to specify the properties of selected text in
TextField and SelectableText widgets.
These replace several top-level properties of ThemeData
and update their default values to match the Material
Design specification. This document describes how
applications can migrate to this new API.

Migration guide