From f94b1e1fc80aff996460354c0d43dfedd0372230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kl=C3=AD=C4=8D?= Date: Mon, 6 May 2024 15:13:19 +0200 Subject: [PATCH] Fix Tooltip.decoration comment (#147858) Tooltip decoration's comment had the backgrounds for Brightness.dark and Brightness.light swapped. --- packages/flutter/lib/src/material/tooltip.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/tooltip.dart b/packages/flutter/lib/src/material/tooltip.dart index 1456e0d278db..57a48fb9f613 100644 --- a/packages/flutter/lib/src/material/tooltip.dart +++ b/packages/flutter/lib/src/material/tooltip.dart @@ -273,8 +273,8 @@ class Tooltip extends StatefulWidget { /// /// The tooltip shape defaults to a rounded rectangle with a border radius of /// 4.0. Tooltips will also default to an opacity of 90% and with the color - /// [Colors.grey]\[700\] if [ThemeData.brightness] is [Brightness.dark], and - /// [Colors.white] if it is [Brightness.light]. + /// [Colors.grey]\[700\] if [ThemeData.brightness] is [Brightness.light], and + /// [Colors.white] if it is [Brightness.dark]. final Decoration? decoration; /// The style to use for the message of the tooltip.