Unverified Commit 6e72faca authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Fix Icon.color docs (#47691)

parent d874596e
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment