diff --git a/packages/flutter/lib/src/widgets/icon.dart b/packages/flutter/lib/src/widgets/icon.dart index 8322517314..0774e93565 100644 --- a/packages/flutter/lib/src/widgets/icon.dart +++ b/packages/flutter/lib/src/widgets/icon.dart @@ -113,14 +113,16 @@ class Icon extends StatelessWidget { /// See [Theme] to set the current theme and [ThemeData.brightness] /// for setting the current theme's brightness. /// + /// {@tool sample} /// Typically, a material design color will be used, as follows: /// /// ```dart /// Icon( - /// icon: Icons.widgets, + /// Icons.widgets, /// color: Colors.blue.shade400, /// ) /// ``` + /// {@end-tool} final Color color; /// Semantic label for the icon.