diff --git a/packages/flutter/lib/src/widgets/icon.dart b/packages/flutter/lib/src/widgets/icon.dart index 7ccb35ef27..459f922ada 100644 --- a/packages/flutter/lib/src/widgets/icon.dart +++ b/packages/flutter/lib/src/widgets/icon.dart @@ -21,6 +21,20 @@ import 'icon_theme_data.dart'; /// Typically this is introduced automatically by the [WidgetsApp] or /// [MaterialApp]. /// +/// {@tool sample} +/// +/// This example shows how to use [Icon] to create an addition icon, in the +/// color pink, and 30 pixels in size. +/// +/// ```dart +/// Icon( +/// Icons.add, +/// color: Colors.pink, +/// size: 30.0, +/// ) +/// ``` +/// {@end-tool} +/// /// See also: /// /// * [IconButton], for interactive icons.