diff --git a/packages/flutter/lib/src/cupertino/icons.dart b/packages/flutter/lib/src/cupertino/icons.dart index d2968b6cc9..fc7c9c1eb9 100644 --- a/packages/flutter/lib/src/cupertino/icons.dart +++ b/packages/flutter/lib/src/cupertino/icons.dart @@ -24,8 +24,7 @@ import 'package:flutter/widgets.dart'; /// See also: /// /// * [Icon], used to show these icons. -/// * , a map of the -/// icons in this icons font. +/// * , a map of the icons in this icons font. class CupertinoIcons { CupertinoIcons._(); @@ -43,11 +42,22 @@ class CupertinoIcons { /// A thin right chevron. static const IconData right_chevron = IconData(0xf3d3, fontFamily: iconFont, fontPackage: iconFontPackage, matchTextDirection: true); - /// iOS style share icon with an arrow pointing up from a box. + /// iOS style share icon with an arrow pointing up from a box. This icon is not filled in. /// - /// For another (pre-iOS 7) version of this icon, see [share_up]. + /// See also: + /// + /// * [share_solid], which is similar, but filled in. + /// * [share_up], for another (pre-iOS 7) version of this icon. static const IconData share = IconData(0xf4ca, fontFamily: iconFont, fontPackage: iconFontPackage); + /// iOS style share icon with an arrow pointing up from a box. This icon is filled in. + /// + /// See also: + /// + /// * [share], which is similar, but not filled in. + /// * [share_up], for another (pre-iOS 7) version of this icon. + static const IconData share_solid = IconData(0xf4cb, fontFamily: iconFont, fontPackage: iconFontPackage); + /// A book silhouette spread open. static const IconData book = IconData(0xf3e7, fontFamily: iconFont, fontPackage: iconFontPackage); @@ -78,11 +88,27 @@ class CupertinoIcons { static const IconData search = IconData(0xf4a5, fontFamily: iconFont, fontPackage: iconFontPackage); /// A checkmark. + /// + /// See also: + /// + /// * [check_mark_circled], which consists of this check mark and a circle surrounding it. static const IconData check_mark = IconData(0xf3fd, fontFamily: iconFont, fontPackage: iconFontPackage); - /// A checkmark in a circle. + /// A checkmark in a circle. The circle is not filled in. + /// + /// See also: + /// + /// * [check_mark_circled_solid], which is similar, but filled in. + /// * [check_mark], which is the check mark without a circle. static const IconData check_mark_circled = IconData(0xf3fe, fontFamily: iconFont, fontPackage: iconFontPackage); + /// A checkmark in a circle. The circle is filled in. + /// + /// See also: + /// + /// * [check_mark_circled], which is similar, but not filled in. + static const IconData check_mark_circled_solid = IconData(0xf3ff, fontFamily: iconFont, fontPackage: iconFontPackage); + /// A thicker left chevron used in iOS for the navigation bar back button. static const IconData back = IconData(0xf3cf, fontFamily: iconFont, fontPackage: iconFontPackage, matchTextDirection: true); @@ -107,6 +133,9 @@ class CupertinoIcons { /// A solid down arrow. static const IconData down_arrow = IconData(0xf35d, fontFamily: iconFont, fontPackage: iconFontPackage); + /// A solid up arrow. + static const IconData up_arrow = IconData(0xf366, fontFamily: iconFont, fontPackage: iconFontPackage); + /// A charging battery. static const IconData battery_charging = IconData(0xf111, fontFamily: iconFont, fontPackage: iconFontPackage); @@ -143,4 +172,252 @@ class CupertinoIcons { /// Two right-facing intertwined arrows. static const IconData shuffle_thick = IconData(0xf221, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera for still photographs. This icon is filled in. + /// + /// See also: + /// + /// * [photo_camera], which is similar, but not filled in. + /// * [video_camera_solid], for the moving picture equivalent. + static const IconData photo_camera = IconData(0xf3f5, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera for still photographs. This icon is not filled in. + /// + /// See also: + /// + /// * [photo_camera_solid], which is similar, but filled in. + /// * [video_camera], for the moving picture equivalent. + static const IconData photo_camera_solid = IconData(0xf3f6, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera for moving pictures. This icon is not filled in. + /// + /// See also: + /// + /// * [video_camera_solid], which is similar, but filled in. + /// * [photo_camera], for the still photograph equivalent. + static const IconData video_camera = IconData(0xf4cc, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera for moving pictures. This icon is filled in. + /// + /// See also: + /// + /// * [video_camera], which is similar, but not filled in. + /// * [photo_camera_solid], for the still photograph equivalent. + static const IconData video_camera_solid = IconData(0xf4cd, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera containing two circular arrows pointing at each other, which indicate switching. This icon is not filled in. + /// + /// See also: + /// + /// * [switch_camera_solid], which is similar, but filled in. + static const IconData switch_camera = IconData(0xf49e, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A camera containing two circular arrows pointing at each other, which indicate switching. This icon is filled in. + /// + /// See also: + /// + /// * [switch_camera], which is similar, but not filled in. + static const IconData switch_camera_solid = IconData(0xf49f, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A collection of folders, which store collections of files, i.e. an album. This icon is not filled in. + /// + /// See also: + /// + /// * [collections_solid], which is similar, but filled in. + static const IconData collections = IconData(0xf3c9, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A collection of folders, which store collections of files, i.e. an album. This icon is filled in. + /// + /// See also: + /// + /// * [collections], which is similar, but not filled in. + static const IconData collections_solid = IconData(0xf3ca, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A single folder, which stores multiple files. This icon is not filled in. + /// + /// See also: + /// + /// * [folder_solid], which is similar, but filled in. + /// * [folder_open], which is the pre-iOS 7 version of this icon. + static const IconData folder = IconData(0xf434, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A single folder, which stores multiple files. This icon is filled in. + /// + /// See also: + /// + /// * [folder], which is similar, but not filled in. + /// * [folder_open], which is the pre-iOS 7 version of this icon and not filled in. + static const IconData folder_solid = IconData(0xf435, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A single folder that indicates being opened. A folder like this typically stores multiple files. + /// + /// See also: + /// + /// * [folder], which is the equivalent of this icon for iOS versions later than or equal to iOS 7. + static const IconData folder_open = IconData(0xf38a, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A trash bin for removing items. This icon is not filled in. + /// + /// See also: + /// + /// * [delete_solid], which is similar, but filled in. + static const IconData delete = IconData(0xf4c4, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A trash bin for removing items. This icon is filled in. + /// + /// See also: + /// + /// * [delete], which is similar, but not filled in. + static const IconData delete_solid = IconData(0xf4c5, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A trash bin with minimal detail for removing items. + /// + /// See also: + /// + /// * [delete], which is the iOS 7 equivalent of this icon with richer detail. + static const IconData delete_simple = IconData(0xf37f, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A simple pen. + /// + /// See also: + /// + /// * [pencil], which is similar, but has less detail and looks like a pencil. + static const IconData pen = IconData(0xf2bf, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A simple pencil. + /// + /// See also: + /// + /// * [pen], which is similar, but has more detail and looks like a pen. + static const IconData pencil = IconData(0xf37e, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A box for writing and a pen on top (that indicates the writing). This icon is not filled in. + /// + /// See also: + /// + /// * [create_solid], which is similar, but filled in. + /// * [pencil], which is just a pencil. + /// * [pen], which is just a pen. + static const IconData create = IconData(0xf417, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A box for writing and a pen on top (that indicates the writing). This icon is filled in. + /// + /// See also: + /// + /// * [create], which is similar, but not filled in. + /// * [pencil], which is just a pencil. + /// * [pen], which is just a pen. + static const IconData create_solid = IconData(0xf417, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start. + /// + /// See also: + /// + /// * [refresh_circled], which is this icon put in a circle. + /// * [refresh_thin], which is an arrow of the same concept, but thinner and with a smaller gap in between its end and start. + /// * [refresh_thick], which is similar, but rotated 45 degrees clockwise and thicker. + /// * [refresh_bold], which is similar, but rotated 90 degrees clockwise and much thicker. + static const IconData refresh = IconData(0xf49a, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start surrounded by a circle. This is icon is not filled in. + /// + /// See also: + /// + /// * [refresh_circled_solid], which is similar, but filled in. + /// * [refresh], which is the arrow of this icon without a circle. + static const IconData refresh_circled = IconData(0xf49b, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start surrounded by a circle. This is icon is filled in. + /// + /// See also: + /// + /// * [refresh_circled], which is similar, but not filled in. + /// * [refresh], which is the arrow of this icon filled in without a circle. + static const IconData refresh_circled_solid = IconData(0xf49c, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start. + /// + /// See also: + /// + /// * [refresh], which is an arrow of the same concept, but thicker and with a larger gap in between its end and start. + static const IconData refresh_thin = IconData(0xf49d, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start. + /// + /// See also: + /// + /// * [refresh], which is similar, but rotated 45 degrees anti-clockwise and thinner. + /// * [refresh_bold], which is similar, but rotated 45 degrees clockwise and thicker. + static const IconData refresh_thick = IconData(0xf3a8, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// An arrow on a circular path with its end pointing at its start. + /// + /// See also: + /// + /// * [refresh_thick], which is similar, but rotated 45 degrees anti-clockwise and thinner. + /// * [refresh], which is similar, but rotated 90 degrees anti-clockwise and much thinner. + static const IconData refresh_bold = IconData(0xf21c, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A cross of two diagonal lines from edge to edge crossing in an angle of 90 degrees, which is used for dismissal. + /// + /// See also: + /// + /// * [clear_circled], which uses this cross as a blank space in a filled out circled. + /// * [clear], which uses a thinner cross and is the iOS 7 equivalent of this icon. + static const IconData clear_thick = IconData(0xf2d7, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A cross of two diagonal lines from edge to edge crossing in an angle of 90 degrees, which is used for dismissal, used as a blank space in a circle. + /// + /// See also: + /// + /// * [clear], which is equivalent to the cross of this icon without a circle. + /// * [clear_circled_solid], which is similar, but uses a thinner cross. + static const IconData clear_thick_circled = IconData(0xf36e, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A cross of two diagonal lines from edge to edge crossing in an angle of 90 degrees, which is used for dismissal. + /// + /// See also: + /// + /// * [clear_circled], which consists of this cross and a circle surrounding it. + /// * [clear], which uses a thicker cross and is the pre-iOS 7 equivalent of this icon. + static const IconData clear = IconData(0xf404, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A cross of two diagonal lines from edge to edge crossing in an angle of 90 degrees, which is used for dismissal, surrounded by circle. This icon is not filled in. + /// + /// See also: + /// + /// * [clear_circled_solid], which is similar, but filled in. + /// * [clear], which is the standalone cross of this icon. + static const IconData clear_circled = IconData(0xf405, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// A cross of two diagonal lines from edge to edge crossing in an angle of 90 degrees, which is used for dismissal, used as a blank space in a circle. This icon is filled in. + /// + /// See also: + /// + /// * [clear_circled], which is similar, but not filled in. + static const IconData clear_circled_solid = IconData(0xf406, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// Two straight lines, one horizontal and one vertical, meeting in the middle, which is the equivalent of a plus sign. + /// + /// See also: + /// + /// * [plus_circled], which is the pre-iOS 7 version of this icon with a thicker cross. + /// * [add_circled], which consists of the plus and a circle around it. + static const IconData add = IconData(0xf489, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// Two straight lines, one horizontal and one vertical, meeting in the middle, which is the equivalent of a plus sign, surrounded by a circle. This icon is not filled in. + /// + /// See also: + /// + /// * [plus_circled], which is the pre-iOS 7 version of this icon with a thicker cross and a filled in circle. + /// * [add_circled_solid], which is similar, but filled in. + static const IconData add_circled = IconData(0xf48a, fontFamily: iconFont, fontPackage: iconFontPackage); + + /// Two straight lines, one horizontal and one vertical, meeting in the middle, which is the equivalent of a plus sign, surrounded by a circle. This icon is not filled in. + /// + /// See also: + /// + /// * [plus_circled], which is the pre-iOS 7 version of this icon with a thicker cross. + /// * [add_circled], which is similar, but not filled in. + static const IconData add_circled_solid = IconData(0xf48b, fontFamily: iconFont, fontPackage: iconFontPackage); }