diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index 3af465bca9..df456ed848 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -277,7 +277,7 @@ class IconButton extends StatelessWidget { /// IconButton( /// color: Colors.blue, /// onPressed: _handleTap, - /// icon: Icons.widgets, + /// icon: Icon(Icons.widgets), /// ) /// ``` final Color? color;