From 6e72facad1d4bc28384cb8b38d57de8f1de2aa15 Mon Sep 17 00:00:00 2001 From: Shi-Hao Hong Date: Tue, 24 Dec 2019 10:54:04 -0800 Subject: [PATCH] Fix Icon.color docs (#47691) --- packages/flutter/lib/src/widgets/icon.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.