@@ -354,26 +354,6 @@ class ThemeData with Diagnosticable {
354354 TooltipThemeData ? tooltipTheme,
355355 ExpansionTileThemeData ? expansionTileTheme,
356356 // DEPRECATED (newest deprecations at the bottom)
357- @Deprecated (
358- 'No longer used by the framework, please remove any reference to it. '
359- 'This feature was deprecated after v1.23.0-4.0.pre.' ,
360- )
361- bool ? useTextSelectionTheme,
362- @Deprecated (
363- 'Use TextSelectionThemeData.selectionColor instead. '
364- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
365- )
366- Color ? textSelectionColor,
367- @Deprecated (
368- 'Use TextSelectionThemeData.cursorColor instead. '
369- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
370- )
371- Color ? cursorColor,
372- @Deprecated (
373- 'Use TextSelectionThemeData.selectionHandleColor instead. '
374- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
375- )
376- Color ? textSelectionHandleColor,
377357 @Deprecated (
378358 'Use colorScheme.secondary instead. '
379359 'For more information, consult the migration guide at '
@@ -583,10 +563,6 @@ class ThemeData with Diagnosticable {
583563 expansionTileTheme ?? = const ExpansionTileThemeData ();
584564
585565 // DEPRECATED (newest deprecations at the bottom)
586- useTextSelectionTheme ?? = true ;
587- textSelectionColor ?? = isDark ? accentColor : primarySwatch[200 ]! ;
588- cursorColor = cursorColor ?? const Color .fromRGBO (66 , 133 , 244 , 1.0 );
589- textSelectionHandleColor ?? = isDark ? Colors .tealAccent[400 ]! : primarySwatch[300 ]! ;
590566 accentTextTheme = defaultAccentTextTheme.merge (accentTextTheme);
591567 accentIconTheme ?? = accentIsDark ? const IconThemeData (color: Colors .white) : const IconThemeData (color: Colors .black);
592568 buttonColor ?? = isDark ? primarySwatch[600 ]! : Colors .grey[300 ]! ;
@@ -672,10 +648,6 @@ class ThemeData with Diagnosticable {
672648 tooltipTheme: tooltipTheme,
673649 expansionTileTheme: expansionTileTheme,
674650 // DEPRECATED (newest deprecations at the bottom)
675- useTextSelectionTheme: useTextSelectionTheme,
676- textSelectionColor: textSelectionColor,
677- cursorColor: cursorColor,
678- textSelectionHandleColor: textSelectionHandleColor,
679651 accentColor: accentColor,
680652 accentColorBrightness: accentColorBrightness,
681653 accentTextTheme: accentTextTheme,
@@ -779,26 +751,6 @@ class ThemeData with Diagnosticable {
779751 required this .tooltipTheme,
780752 required this .expansionTileTheme,
781753 // DEPRECATED (newest deprecations at the bottom)
782- @Deprecated (
783- 'No longer used by the framework, please remove any reference to it. '
784- 'This feature was deprecated after v1.23.0-4.0.pre.' ,
785- )
786- required this .useTextSelectionTheme,
787- @Deprecated (
788- 'Use TextSelectionThemeData.selectionColor instead. '
789- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
790- )
791- required this .textSelectionColor,
792- @Deprecated (
793- 'Use TextSelectionThemeData.cursorColor instead. '
794- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
795- )
796- required this .cursorColor,
797- @Deprecated (
798- 'Use TextSelectionThemeData.selectionHandleColor instead. '
799- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
800- )
801- required this .textSelectionHandleColor,
802754 @Deprecated (
803755 'Use colorScheme.secondary instead. '
804756 'For more information, consult the migration guide at '
@@ -924,10 +876,6 @@ class ThemeData with Diagnosticable {
924876 assert (tooltipTheme != null ),
925877 assert (expansionTileTheme != null ),
926878 // DEPRECATED (newest deprecations at the bottom)
927- assert (useTextSelectionTheme != null ),
928- assert (textSelectionColor != null ),
929- assert (cursorColor != null ),
930- assert (textSelectionHandleColor != null ),
931879 assert (accentColor != null ),
932880 assert (accentColorBrightness != null ),
933881 assert (accentTextTheme != null ),
@@ -1519,37 +1467,6 @@ class ThemeData with Diagnosticable {
15191467
15201468 // DEPRECATED (newest deprecations at the bottom)
15211469
1522- /// A temporary flag that was used to opt-in to the new [TextSelectionTheme]
1523- /// during the migration to this new theme. That migration is now complete
1524- /// and this flag is not longer used by the framework. Please remove any
1525- /// reference to this property, as it will be removed in future releases.
1526- @Deprecated (
1527- 'No longer used by the framework, please remove any reference to it. '
1528- 'This feature was deprecated after v1.23.0-4.0.pre.' ,
1529- )
1530- final bool useTextSelectionTheme;
1531-
1532- /// The color of text selections in text fields, such as [TextField] .
1533- @Deprecated (
1534- 'Use TextSelectionThemeData.selectionColor instead. '
1535- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1536- )
1537- final Color textSelectionColor;
1538-
1539- /// The color of cursors in Material-style text fields, such as [TextField] .
1540- @Deprecated (
1541- 'Use TextSelectionThemeData.cursorColor instead. '
1542- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1543- )
1544- final Color cursorColor;
1545-
1546- /// The color of the handles used to adjust what part of the text is currently selected.
1547- @Deprecated (
1548- 'Use TextSelectionThemeData.selectionHandleColor instead. '
1549- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1550- )
1551- final Color textSelectionHandleColor;
1552-
15531470 /// Obsolete property that was originally used as the foreground
15541471 /// color for widgets (knobs, text, overscroll edge effect, etc).
15551472 ///
@@ -1744,26 +1661,6 @@ class ThemeData with Diagnosticable {
17441661 TooltipThemeData ? tooltipTheme,
17451662 ExpansionTileThemeData ? expansionTileTheme,
17461663 // DEPRECATED (newest deprecations at the bottom)
1747- @Deprecated (
1748- 'No longer used by the framework, please remove any reference to it. '
1749- 'This feature was deprecated after v1.23.0-4.0.pre.' ,
1750- )
1751- bool ? useTextSelectionTheme,
1752- @Deprecated (
1753- 'Use TextSelectionThemeData.selectionColor instead. '
1754- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1755- )
1756- Color ? textSelectionColor,
1757- @Deprecated (
1758- 'Use TextSelectionThemeData.cursorColor instead. '
1759- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1760- )
1761- Color ? cursorColor,
1762- @Deprecated (
1763- 'Use TextSelectionThemeData.selectionHandleColor instead. '
1764- 'This feature was deprecated after v1.26.0-18.0.pre.' ,
1765- )
1766- Color ? textSelectionHandleColor,
17671664 @Deprecated (
17681665 'No longer used by the framework, please remove any reference to it. '
17691666 'For more information, consult the migration guide at '
@@ -1893,10 +1790,6 @@ class ThemeData with Diagnosticable {
18931790 tooltipTheme: tooltipTheme ?? this .tooltipTheme,
18941791 expansionTileTheme: expansionTileTheme ?? this .expansionTileTheme,
18951792 // DEPRECATED (newest deprecations at the bottom)
1896- useTextSelectionTheme: useTextSelectionTheme ?? this .useTextSelectionTheme,
1897- textSelectionColor: textSelectionColor ?? this .textSelectionColor,
1898- cursorColor: cursorColor ?? this .cursorColor,
1899- textSelectionHandleColor: textSelectionHandleColor ?? this .textSelectionHandleColor,
19001793 accentColor: accentColor ?? this .accentColor,
19011794 accentColorBrightness: accentColorBrightness ?? this .accentColorBrightness,
19021795 accentTextTheme: accentTextTheme ?? this .accentTextTheme,
@@ -2092,10 +1985,6 @@ class ThemeData with Diagnosticable {
20921985 tooltipTheme: TooltipThemeData .lerp (a.tooltipTheme, b.tooltipTheme, t)! ,
20931986 expansionTileTheme: ExpansionTileThemeData .lerp (a.expansionTileTheme, b.expansionTileTheme, t)! ,
20941987 // DEPRECATED (newest deprecations at the bottom)
2095- useTextSelectionTheme: t < 0.5 ? a.useTextSelectionTheme : b.useTextSelectionTheme,
2096- textSelectionColor: Color .lerp (a.textSelectionColor, b.textSelectionColor, t)! ,
2097- cursorColor: Color .lerp (a.cursorColor, b.cursorColor, t)! ,
2098- textSelectionHandleColor: Color .lerp (a.textSelectionHandleColor, b.textSelectionHandleColor, t)! ,
20991988 accentColor: Color .lerp (a.accentColor, b.accentColor, t)! ,
21001989 accentColorBrightness: t < 0.5 ? a.accentColorBrightness : b.accentColorBrightness,
21011990 accentTextTheme: TextTheme .lerp (a.accentTextTheme, b.accentTextTheme, t),
@@ -2193,10 +2082,6 @@ class ThemeData with Diagnosticable {
21932082 other.tooltipTheme == tooltipTheme &&
21942083 other.expansionTileTheme == expansionTileTheme &&
21952084 // DEPRECATED (newest deprecations at the bottom)
2196- other.useTextSelectionTheme == useTextSelectionTheme &&
2197- other.textSelectionColor == textSelectionColor &&
2198- other.cursorColor == cursorColor &&
2199- other.textSelectionHandleColor == textSelectionHandleColor &&
22002085 other.accentColor == accentColor &&
22012086 other.accentColorBrightness == accentColorBrightness &&
22022087 other.accentTextTheme == accentTextTheme &&
@@ -2292,10 +2177,6 @@ class ThemeData with Diagnosticable {
22922177 tooltipTheme,
22932178 expansionTileTheme,
22942179 // DEPRECATED (newest deprecations at the bottom)
2295- useTextSelectionTheme,
2296- textSelectionColor,
2297- cursorColor,
2298- textSelectionHandleColor,
22992180 accentColor,
23002181 accentColorBrightness,
23012182 accentTextTheme,
@@ -2390,10 +2271,6 @@ class ThemeData with Diagnosticable {
23902271 properties.add (DiagnosticsProperty <TooltipThemeData >('tooltipTheme' , tooltipTheme, level: DiagnosticLevel .debug));
23912272 properties.add (DiagnosticsProperty <ExpansionTileThemeData >('expansionTileTheme' , expansionTileTheme, level: DiagnosticLevel .debug));
23922273 // DEPRECATED (newest deprecations at the bottom)
2393- properties.add (DiagnosticsProperty <bool >('useTextSelectionTheme' , useTextSelectionTheme, level: DiagnosticLevel .debug));
2394- properties.add (ColorProperty ('textSelectionColor' , textSelectionColor, defaultValue: defaultData.textSelectionColor, level: DiagnosticLevel .debug));
2395- properties.add (ColorProperty ('cursorColor' , cursorColor, defaultValue: defaultData.cursorColor, level: DiagnosticLevel .debug));
2396- properties.add (ColorProperty ('textSelectionHandleColor' , textSelectionHandleColor, defaultValue: defaultData.textSelectionHandleColor, level: DiagnosticLevel .debug));
23972274 properties.add (ColorProperty ('accentColor' , accentColor, defaultValue: defaultData.accentColor, level: DiagnosticLevel .debug));
23982275 properties.add (EnumProperty <Brightness >('accentColorBrightness' , accentColorBrightness, defaultValue: defaultData.accentColorBrightness, level: DiagnosticLevel .debug));
23992276 properties.add (DiagnosticsProperty <TextTheme >('accentTextTheme' , accentTextTheme, level: DiagnosticLevel .debug));
0 commit comments