Skip to content

Commit 3eee640

Browse files
📝 Use Icon() in IconButton.color documentation (#107819)
1 parent d8b9d5d commit 3eee640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class IconButton extends StatelessWidget {
277277
/// IconButton(
278278
/// color: Colors.blue,
279279
/// onPressed: _handleTap,
280-
/// icon: Icons.widgets,
280+
/// icon: Icon(Icons.widgets),
281281
/// )
282282
/// ```
283283
final Color? color;

0 commit comments

Comments
 (0)