Skip to content

Commit

Permalink
Fix Tooltip.decoration comment (#147858)
Browse files Browse the repository at this point in the history
Tooltip decoration's comment had the backgrounds for Brightness.dark and Brightness.light swapped.
  • Loading branch information
karelklic committed May 6, 2024
1 parent 9a005f8 commit f94b1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/material/tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f94b1e1

Please sign in to comment.