Skip to content

Commit f94b1e1

Browse files
authored
Fix Tooltip.decoration comment (#147858)
Tooltip decoration's comment had the backgrounds for Brightness.dark and Brightness.light swapped.
1 parent 9a005f8 commit f94b1e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter/lib/src/material/tooltip.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ class Tooltip extends StatefulWidget {
273273
///
274274
/// The tooltip shape defaults to a rounded rectangle with a border radius of
275275
/// 4.0. Tooltips will also default to an opacity of 90% and with the color
276-
/// [Colors.grey]\[700\] if [ThemeData.brightness] is [Brightness.dark], and
277-
/// [Colors.white] if it is [Brightness.light].
276+
/// [Colors.grey]\[700\] if [ThemeData.brightness] is [Brightness.light], and
277+
/// [Colors.white] if it is [Brightness.dark].
278278
final Decoration? decoration;
279279

280280
/// The style to use for the message of the tooltip.

0 commit comments

Comments
 (0)