Fix Icon.color docs (#47691)

This commit is contained in:
Shi-Hao Hong 2019-12-24 10:54:04 -08:00 committed by GitHub
parent d874596e38
commit 6e72facad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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