From b828846fb9b7d827dabb6ba8e6cfada607617176 Mon Sep 17 00:00:00 2001 From: Rydmike Date: Mon, 10 Jul 2023 18:43:00 +0300 Subject: [PATCH] Fix default icon color constants reversed brightness documentation (#130231) Fixes the reversed default icon color constants brightness documentation for `kDefaultIconLightColor` and `kDefaultIconDarkColor`. FIX: https://github.com/flutter/flutter/issues/130230 --- packages/flutter/lib/src/material/constants.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/constants.dart b/packages/flutter/lib/src/material/constants.dart index 4696cce72d..87064a5a56 100644 --- a/packages/flutter/lib/src/material/constants.dart +++ b/packages/flutter/lib/src/material/constants.dart @@ -51,11 +51,11 @@ const EdgeInsets kTabLabelPadding = EdgeInsets.symmetric(horizontal: 16.0); const EdgeInsets kMaterialListPadding = EdgeInsets.symmetric(vertical: 8.0); /// The default color for [ThemeData.iconTheme] when [ThemeData.brightness] is -/// [Brightness.light]. This color is used in [IconButton] to detect whether +/// [Brightness.dark]. This color is used in [IconButton] to detect whether /// [IconTheme.of(context).color] is the same as the default color of [ThemeData.iconTheme]. const Color kDefaultIconLightColor = Colors.white; /// The default color for [ThemeData.iconTheme] when [ThemeData.brightness] is -/// [Brightness.dark]. This color is used in [IconButton] to detect whether +/// [Brightness.light]. This color is used in [IconButton] to detect whether /// [IconTheme.of(context).color] is the same as the default color of [ThemeData.iconTheme]. const Color kDefaultIconDarkColor = Colors.black87;