Fix Icon.color docs (#47691)
This commit is contained in:
parent
d874596e38
commit
6e72facad1
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user