From 156e3487b0edd057a7d0715c502194772876b758 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 11 Oct 2023 14:39:06 -0500 Subject: [PATCH] Fix some deprecation details (#136385) This fixes/notates a few deprecations from an audit for the next tech debt cycle. - ThemeData errorColor and backgroundColor are notated as deprecated in multiple places, but one usage had a different version tag. Updated to match the rest. - ThemeData.copyWith useMaterial3 was deprecated because it did not do what developers expected - it did not automatically reassign all of the color values and such. (confirmed with @HansMuller) I added a note so that when we later remove it we don't introduce a bug. - the describeEnum deprecation was tagged wrong, it was a very long PR so by the time it merged the version it was finally tagged with was much later. (https://github.com/flutter/flutter/pull/125016) --- packages/flutter/lib/src/foundation/diagnostics.dart | 2 +- packages/flutter/lib/src/material/theme_data.dart | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart index 4f14a3b4da..a23a9bee34 100644 --- a/packages/flutter/lib/src/foundation/diagnostics.dart +++ b/packages/flutter/lib/src/foundation/diagnostics.dart @@ -2948,7 +2948,7 @@ String describeIdentity(Object? object) => '${objectRuntimeType(object, '