From d98e5f456aca1554479bbaa5161719d6248e61c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=98=8E?= <2534290808@qq.com> Date: Thu, 10 Jan 2019 15:46:21 +0800 Subject: [PATCH] add fontawesome icon --- lib/flutter_icon_data.dart | 2 + lib/flutter_icons.dart | 1 + lib/font_awesome.dart | 795 +++++++++++++++++++++++++++++++++++++ 3 files changed, 798 insertions(+) create mode 100644 lib/font_awesome.dart diff --git a/lib/flutter_icon_data.dart b/lib/flutter_icon_data.dart index 3da9e16..c66ed98 100644 --- a/lib/flutter_icon_data.dart +++ b/lib/flutter_icon_data.dart @@ -10,4 +10,6 @@ class FlutterIconData extends IconData { const FlutterIconData.ionicons(int codePoint):this(codePoint,"Ionicons"); const FlutterIconData.antDesign(int codePoint):this(codePoint,"AntDesign"); + + const FlutterIconData.fontAwesome(int codePoint):this(codePoint,"FontAwesome"); } diff --git a/lib/flutter_icons.dart b/lib/flutter_icons.dart index 5d27a59..857de45 100644 --- a/lib/flutter_icons.dart +++ b/lib/flutter_icons.dart @@ -2,3 +2,4 @@ library flutter_icons; export 'ionicons.dart'; export 'ant_design.dart'; +export 'font_awesome.dart'; diff --git a/lib/font_awesome.dart b/lib/font_awesome.dart new file mode 100644 index 0000000..baf201d --- /dev/null +++ b/lib/font_awesome.dart @@ -0,0 +1,795 @@ +import 'flutter_icon_data.dart'; + +class FontAwesome { + static getIcon(iconName){ + return FlutterIconData.fontAwesome(_fontAwesome[iconName]); + } +} +const Map _fontAwesome = { + "glass": 61440, + "music": 61441, + "search": 61442, + "envelope-o": 61443, + "heart": 61444, + "star": 61445, + "star-o": 61446, + "user": 61447, + "film": 61448, + "th-large": 61449, + "th": 61450, + "th-list": 61451, + "check": 61452, + "remove": 61453, + "close": 61453, + "times": 61453, + "search-plus": 61454, + "search-minus": 61456, + "power-off": 61457, + "signal": 61458, + "gear": 61459, + "cog": 61459, + "trash-o": 61460, + "home": 61461, + "file-o": 61462, + "clock-o": 61463, + "road": 61464, + "download": 61465, + "arrow-circle-o-down": 61466, + "arrow-circle-o-up": 61467, + "inbox": 61468, + "play-circle-o": 61469, + "rotate-right": 61470, + "repeat": 61470, + "refresh": 61473, + "list-alt": 61474, + "lock": 61475, + "flag": 61476, + "headphones": 61477, + "volume-off": 61478, + "volume-down": 61479, + "volume-up": 61480, + "qrcode": 61481, + "barcode": 61482, + "tag": 61483, + "tags": 61484, + "book": 61485, + "bookmark": 61486, + "print": 61487, + "camera": 61488, + "font": 61489, + "bold": 61490, + "italic": 61491, + "text-height": 61492, + "text-width": 61493, + "align-left": 61494, + "align-center": 61495, + "align-right": 61496, + "align-justify": 61497, + "list": 61498, + "dedent": 61499, + "outdent": 61499, + "indent": 61500, + "video-camera": 61501, + "photo": 61502, + "image": 61502, + "picture-o": 61502, + "pencil": 61504, + "map-marker": 61505, + "adjust": 61506, + "tint": 61507, + "edit": 61508, + "pencil-square-o": 61508, + "share-square-o": 61509, + "check-square-o": 61510, + "arrows": 61511, + "step-backward": 61512, + "fast-backward": 61513, + "backward": 61514, + "play": 61515, + "pause": 61516, + "stop": 61517, + "forward": 61518, + "fast-forward": 61520, + "step-forward": 61521, + "eject": 61522, + "chevron-left": 61523, + "chevron-right": 61524, + "plus-circle": 61525, + "minus-circle": 61526, + "times-circle": 61527, + "check-circle": 61528, + "question-circle": 61529, + "info-circle": 61530, + "crosshairs": 61531, + "times-circle-o": 61532, + "check-circle-o": 61533, + "ban": 61534, + "arrow-left": 61536, + "arrow-right": 61537, + "arrow-up": 61538, + "arrow-down": 61539, + "mail-forward": 61540, + "share": 61540, + "expand": 61541, + "compress": 61542, + "plus": 61543, + "minus": 61544, + "asterisk": 61545, + "exclamation-circle": 61546, + "gift": 61547, + "leaf": 61548, + "fire": 61549, + "eye": 61550, + "eye-slash": 61552, + "warning": 61553, + "exclamation-triangle": 61553, + "plane": 61554, + "calendar": 61555, + "random": 61556, + "comment": 61557, + "magnet": 61558, + "chevron-up": 61559, + "chevron-down": 61560, + "retweet": 61561, + "shopping-cart": 61562, + "folder": 61563, + "folder-open": 61564, + "arrows-v": 61565, + "arrows-h": 61566, + "bar-chart-o": 61568, + "bar-chart": 61568, + "twitter-square": 61569, + "facebook-square": 61570, + "camera-retro": 61571, + "key": 61572, + "gears": 61573, + "cogs": 61573, + "comments": 61574, + "thumbs-o-up": 61575, + "thumbs-o-down": 61576, + "star-half": 61577, + "heart-o": 61578, + "sign-out": 61579, + "linkedin-square": 61580, + "thumb-tack": 61581, + "external-link": 61582, + "sign-in": 61584, + "trophy": 61585, + "github-square": 61586, + "upload": 61587, + "lemon-o": 61588, + "phone": 61589, + "square-o": 61590, + "bookmark-o": 61591, + "phone-square": 61592, + "twitter": 61593, + "facebook-f": 61594, + "facebook": 61594, + "github": 61595, + "unlock": 61596, + "credit-card": 61597, + "feed": 61598, + "rss": 61598, + "hdd-o": 61600, + "bullhorn": 61601, + "bell": 61683, + "certificate": 61603, + "hand-o-right": 61604, + "hand-o-left": 61605, + "hand-o-up": 61606, + "hand-o-down": 61607, + "arrow-circle-left": 61608, + "arrow-circle-right": 61609, + "arrow-circle-up": 61610, + "arrow-circle-down": 61611, + "globe": 61612, + "wrench": 61613, + "tasks": 61614, + "filter": 61616, + "briefcase": 61617, + "arrows-alt": 61618, + "group": 61632, + "users": 61632, + "chain": 61633, + "link": 61633, + "cloud": 61634, + "flask": 61635, + "cut": 61636, + "scissors": 61636, + "copy": 61637, + "files-o": 61637, + "paperclip": 61638, + "save": 61639, + "floppy-o": 61639, + "square": 61640, + "navicon": 61641, + "reorder": 61641, + "bars": 61641, + "list-ul": 61642, + "list-ol": 61643, + "strikethrough": 61644, + "underline": 61645, + "table": 61646, + "magic": 61648, + "truck": 61649, + "pinterest": 61650, + "pinterest-square": 61651, + "google-plus-square": 61652, + "google-plus": 61653, + "money": 61654, + "caret-down": 61655, + "caret-up": 61656, + "caret-left": 61657, + "caret-right": 61658, + "columns": 61659, + "unsorted": 61660, + "sort": 61660, + "sort-down": 61661, + "sort-desc": 61661, + "sort-up": 61662, + "sort-asc": 61662, + "envelope": 61664, + "linkedin": 61665, + "rotate-left": 61666, + "undo": 61666, + "legal": 61667, + "gavel": 61667, + "dashboard": 61668, + "tachometer": 61668, + "comment-o": 61669, + "comments-o": 61670, + "flash": 61671, + "bolt": 61671, + "sitemap": 61672, + "umbrella": 61673, + "paste": 61674, + "clipboard": 61674, + "lightbulb-o": 61675, + "exchange": 61676, + "cloud-download": 61677, + "cloud-upload": 61678, + "user-md": 61680, + "stethoscope": 61681, + "suitcase": 61682, + "bell-o": 61602, + "coffee": 61684, + "cutlery": 61685, + "file-text-o": 61686, + "building-o": 61687, + "hospital-o": 61688, + "ambulance": 61689, + "medkit": 61690, + "fighter-jet": 61691, + "beer": 61692, + "h-square": 61693, + "plus-square": 61694, + "angle-double-left": 61696, + "angle-double-right": 61697, + "angle-double-up": 61698, + "angle-double-down": 61699, + "angle-left": 61700, + "angle-right": 61701, + "angle-up": 61702, + "angle-down": 61703, + "desktop": 61704, + "laptop": 61705, + "tablet": 61706, + "mobile-phone": 61707, + "mobile": 61707, + "circle-o": 61708, + "quote-left": 61709, + "quote-right": 61710, + "spinner": 61712, + "circle": 61713, + "mail-reply": 61714, + "reply": 61714, + "github-alt": 61715, + "folder-o": 61716, + "folder-open-o": 61717, + "smile-o": 61720, + "frown-o": 61721, + "meh-o": 61722, + "gamepad": 61723, + "keyboard-o": 61724, + "flag-o": 61725, + "flag-checkered": 61726, + "terminal": 61728, + "code": 61729, + "mail-reply-all": 61730, + "reply-all": 61730, + "star-half-empty": 61731, + "star-half-full": 61731, + "star-half-o": 61731, + "location-arrow": 61732, + "crop": 61733, + "code-fork": 61734, + "unlink": 61735, + "chain-broken": 61735, + "question": 61736, + "info": 61737, + "exclamation": 61738, + "superscript": 61739, + "subscript": 61740, + "eraser": 61741, + "puzzle-piece": 61742, + "microphone": 61744, + "microphone-slash": 61745, + "shield": 61746, + "calendar-o": 61747, + "fire-extinguisher": 61748, + "rocket": 61749, + "maxcdn": 61750, + "chevron-circle-left": 61751, + "chevron-circle-right": 61752, + "chevron-circle-up": 61753, + "chevron-circle-down": 61754, + "html5": 61755, + "css3": 61756, + "anchor": 61757, + "unlock-alt": 61758, + "bullseye": 61760, + "ellipsis-h": 61761, + "ellipsis-v": 61762, + "rss-square": 61763, + "play-circle": 61764, + "ticket": 61765, + "minus-square": 61766, + "minus-square-o": 61767, + "level-up": 61768, + "level-down": 61769, + "check-square": 61770, + "pencil-square": 61771, + "external-link-square": 61772, + "share-square": 61773, + "compass": 61774, + "toggle-down": 61776, + "caret-square-o-down": 61776, + "toggle-up": 61777, + "caret-square-o-up": 61777, + "toggle-right": 61778, + "caret-square-o-right": 61778, + "euro": 61779, + "eur": 61779, + "gbp": 61780, + "dollar": 61781, + "usd": 61781, + "rupee": 61782, + "inr": 61782, + "cny": 61783, + "rmb": 61783, + "yen": 61783, + "jpy": 61783, + "ruble": 61784, + "rouble": 61784, + "rub": 61784, + "won": 61785, + "krw": 61785, + "bitcoin": 61786, + "btc": 61786, + "file": 61787, + "file-text": 61788, + "sort-alpha-asc": 61789, + "sort-alpha-desc": 61790, + "sort-amount-asc": 61792, + "sort-amount-desc": 61793, + "sort-numeric-asc": 61794, + "sort-numeric-desc": 61795, + "thumbs-up": 61796, + "thumbs-down": 61797, + "youtube-square": 61798, + "youtube": 61799, + "xing": 61800, + "xing-square": 61801, + "youtube-play": 61802, + "dropbox": 61803, + "stack-overflow": 61804, + "instagram": 61805, + "flickr": 61806, + "adn": 61808, + "bitbucket": 61809, + "bitbucket-square": 61810, + "tumblr": 61811, + "tumblr-square": 61812, + "long-arrow-down": 61813, + "long-arrow-up": 61814, + "long-arrow-left": 61815, + "long-arrow-right": 61816, + "apple": 61817, + "windows": 61818, + "android": 61819, + "linux": 61820, + "dribbble": 61821, + "skype": 61822, + "foursquare": 61824, + "trello": 61825, + "female": 61826, + "male": 61827, + "gittip": 61828, + "gratipay": 61828, + "sun-o": 61829, + "moon-o": 61830, + "archive": 61831, + "bug": 61832, + "vk": 61833, + "weibo": 61834, + "renren": 61835, + "pagelines": 61836, + "stack-exchange": 61837, + "arrow-circle-o-right": 61838, + "arrow-circle-o-left": 61840, + "toggle-left": 61841, + "caret-square-o-left": 61841, + "dot-circle-o": 61842, + "wheelchair": 61843, + "vimeo-square": 61844, + "turkish-lira": 61845, + "try": 61845, + "plus-square-o": 61846, + "space-shuttle": 61847, + "slack": 61848, + "envelope-square": 61849, + "wordpress": 61850, + "openid": 61851, + "institution": 61852, + "bank": 61852, + "university": 61852, + "mortar-board": 61853, + "graduation-cap": 61853, + "yahoo": 61854, + "google": 61856, + "reddit": 61857, + "reddit-square": 61858, + "stumbleupon-circle": 61859, + "stumbleupon": 61860, + "delicious": 61861, + "digg": 61862, + "pied-piper-pp": 61863, + "pied-piper-alt": 61864, + "drupal": 61865, + "joomla": 61866, + "language": 61867, + "fax": 61868, + "building": 61869, + "child": 61870, + "paw": 61872, + "spoon": 61873, + "cube": 61874, + "cubes": 61875, + "behance": 61876, + "behance-square": 61877, + "steam": 61878, + "steam-square": 61879, + "recycle": 61880, + "automobile": 61881, + "car": 61881, + "cab": 61882, + "taxi": 61882, + "tree": 61883, + "spotify": 61884, + "deviantart": 61885, + "soundcloud": 61886, + "database": 61888, + "file-pdf-o": 61889, + "file-word-o": 61890, + "file-excel-o": 61891, + "file-powerpoint-o": 61892, + "file-photo-o": 61893, + "file-picture-o": 61893, + "file-image-o": 61893, + "file-zip-o": 61894, + "file-archive-o": 61894, + "file-sound-o": 61895, + "file-audio-o": 61895, + "file-movie-o": 61896, + "file-video-o": 61896, + "file-code-o": 61897, + "vine": 61898, + "codepen": 61899, + "jsfiddle": 61900, + "life-bouy": 61901, + "life-buoy": 61901, + "life-saver": 61901, + "support": 61901, + "life-ring": 61901, + "circle-o-notch": 61902, + "ra": 61904, + "resistance": 61904, + "rebel": 61904, + "ge": 61905, + "empire": 61905, + "git-square": 61906, + "git": 61907, + "y-combinator-square": 61908, + "yc-square": 61908, + "hacker-news": 61908, + "tencent-weibo": 61909, + "qq": 61910, + "wechat": 61911, + "weixin": 61911, + "send": 61912, + "paper-plane": 61912, + "send-o": 61913, + "paper-plane-o": 61913, + "history": 61914, + "circle-thin": 61915, + "header": 61916, + "paragraph": 61917, + "sliders": 61918, + "share-alt": 61920, + "share-alt-square": 61921, + "bomb": 61922, + "soccer-ball-o": 61923, + "futbol-o": 61923, + "tty": 61924, + "binoculars": 61925, + "plug": 61926, + "slideshare": 61927, + "twitch": 61928, + "yelp": 61929, + "newspaper-o": 61930, + "wifi": 61931, + "calculator": 61932, + "paypal": 61933, + "google-wallet": 61934, + "cc-visa": 61936, + "cc-mastercard": 61937, + "cc-discover": 61938, + "cc-amex": 61939, + "cc-paypal": 61940, + "cc-stripe": 61941, + "bell-slash": 61942, + "bell-slash-o": 61943, + "trash": 61944, + "copyright": 61945, + "at": 61946, + "eyedropper": 61947, + "paint-brush": 61948, + "birthday-cake": 61949, + "area-chart": 61950, + "pie-chart": 61952, + "line-chart": 61953, + "lastfm": 61954, + "lastfm-square": 61955, + "toggle-off": 61956, + "toggle-on": 61957, + "bicycle": 61958, + "bus": 61959, + "ioxhost": 61960, + "angellist": 61961, + "cc": 61962, + "shekel": 61963, + "sheqel": 61963, + "ils": 61963, + "meanpath": 61964, + "buysellads": 61965, + "connectdevelop": 61966, + "dashcube": 61968, + "forumbee": 61969, + "leanpub": 61970, + "sellsy": 61971, + "shirtsinbulk": 61972, + "simplybuilt": 61973, + "skyatlas": 61974, + "cart-plus": 61975, + "cart-arrow-down": 61976, + "diamond": 61977, + "ship": 61978, + "user-secret": 61979, + "motorcycle": 61980, + "street-view": 61981, + "heartbeat": 61982, + "venus": 61985, + "mars": 61986, + "mercury": 61987, + "intersex": 61988, + "transgender": 61988, + "transgender-alt": 61989, + "venus-double": 61990, + "mars-double": 61991, + "venus-mars": 61992, + "mars-stroke": 61993, + "mars-stroke-v": 61994, + "mars-stroke-h": 61995, + "neuter": 61996, + "genderless": 61997, + "facebook-official": 62000, + "pinterest-p": 62001, + "whatsapp": 62002, + "server": 62003, + "user-plus": 62004, + "user-times": 62005, + "hotel": 62006, + "bed": 62006, + "viacoin": 62007, + "train": 62008, + "subway": 62009, + "medium": 62010, + "yc": 62011, + "y-combinator": 62011, + "optin-monster": 62012, + "opencart": 62013, + "expeditedssl": 62014, + "battery-4": 62016, + "battery": 62016, + "battery-full": 62016, + "battery-3": 62017, + "battery-three-quarters": 62017, + "battery-2": 62018, + "battery-half": 62018, + "battery-1": 62019, + "battery-quarter": 62019, + "battery-0": 62020, + "battery-empty": 62020, + "mouse-pointer": 62021, + "i-cursor": 62022, + "object-group": 62023, + "object-ungroup": 62024, + "sticky-note": 62025, + "sticky-note-o": 62026, + "cc-jcb": 62027, + "cc-diners-club": 62028, + "clone": 62029, + "balance-scale": 62030, + "hourglass-o": 62032, + "hourglass-1": 62033, + "hourglass-start": 62033, + "hourglass-2": 62034, + "hourglass-half": 62034, + "hourglass-3": 62035, + "hourglass-end": 62035, + "hourglass": 62036, + "hand-grab-o": 62037, + "hand-rock-o": 62037, + "hand-stop-o": 62038, + "hand-paper-o": 62038, + "hand-scissors-o": 62039, + "hand-lizard-o": 62040, + "hand-spock-o": 62041, + "hand-pointer-o": 62042, + "hand-peace-o": 62043, + "trademark": 62044, + "registered": 62045, + "creative-commons": 62046, + "gg": 62048, + "gg-circle": 62049, + "tripadvisor": 62050, + "odnoklassniki": 62051, + "odnoklassniki-square": 62052, + "get-pocket": 62053, + "wikipedia-w": 62054, + "safari": 62055, + "chrome": 62056, + "firefox": 62057, + "opera": 62058, + "internet-explorer": 62059, + "tv": 62060, + "television": 62060, + "contao": 62061, + "500px": 62062, + "amazon": 62064, + "calendar-plus-o": 62065, + "calendar-minus-o": 62066, + "calendar-times-o": 62067, + "calendar-check-o": 62068, + "industry": 62069, + "map-pin": 62070, + "map-signs": 62071, + "map-o": 62072, + "map": 62073, + "commenting": 62074, + "commenting-o": 62075, + "houzz": 62076, + "vimeo": 62077, + "black-tie": 62078, + "fonticons": 62080, + "reddit-alien": 62081, + "edge": 62082, + "credit-card-alt": 62083, + "codiepie": 62084, + "modx": 62085, + "fort-awesome": 62086, + "usb": 62087, + "product-hunt": 62088, + "mixcloud": 62089, + "scribd": 62090, + "pause-circle": 62091, + "pause-circle-o": 62092, + "stop-circle": 62093, + "stop-circle-o": 62094, + "shopping-bag": 62096, + "shopping-basket": 62097, + "hashtag": 62098, + "bluetooth": 62099, + "bluetooth-b": 62100, + "percent": 62101, + "gitlab": 62102, + "wpbeginner": 62103, + "wpforms": 62104, + "envira": 62105, + "universal-access": 62106, + "wheelchair-alt": 62107, + "question-circle-o": 62108, + "blind": 62109, + "audio-description": 62110, + "volume-control-phone": 62112, + "braille": 62113, + "assistive-listening-systems": 62114, + "asl-interpreting": 62115, + "american-sign-language-interpreting": 62115, + "deafness": 62116, + "hard-of-hearing": 62116, + "deaf": 62116, + "glide": 62117, + "glide-g": 62118, + "signing": 62119, + "sign-language": 62119, + "low-vision": 62120, + "viadeo": 62121, + "viadeo-square": 62122, + "snapchat": 62123, + "snapchat-ghost": 62124, + "snapchat-square": 62125, + "pied-piper": 62126, + "first-order": 62128, + "yoast": 62129, + "themeisle": 62130, + "google-plus-circle": 62131, + "google-plus-official": 62131, + "fa": 62132, + "font-awesome": 62132, + "handshake-o": 62133, + "envelope-open": 62134, + "envelope-open-o": 62135, + "linode": 62136, + "address-book": 62137, + "address-book-o": 62138, + "vcard": 62139, + "address-card": 62139, + "vcard-o": 62140, + "address-card-o": 62140, + "user-circle": 62141, + "user-circle-o": 62142, + "user-o": 62144, + "id-badge": 62145, + "drivers-license": 62146, + "id-card": 62146, + "drivers-license-o": 62147, + "id-card-o": 62147, + "quora": 62148, + "free-code-camp": 62149, + "telegram": 62150, + "thermometer-4": 62151, + "thermometer": 62151, + "thermometer-full": 62151, + "thermometer-3": 62152, + "thermometer-three-quarters": 62152, + "thermometer-2": 62153, + "thermometer-half": 62153, + "thermometer-1": 62154, + "thermometer-quarter": 62154, + "thermometer-0": 62155, + "thermometer-empty": 62155, + "shower": 62156, + "bathtub": 62157, + "s15": 62157, + "bath": 62157, + "podcast": 62158, + "window-maximize": 62160, + "window-minimize": 62161, + "window-restore": 62162, + "times-rectangle": 62163, + "window-close": 62163, + "times-rectangle-o": 62164, + "window-close-o": 62164, + "bandcamp": 62165, + "grav": 62166, + "etsy": 62167, + "imdb": 62168, + "ravelry": 62169, + "eercast": 62170, + "microchip": 62171, + "snowflake-o": 62172, + "superpowers": 62173, + "wpexplorer": 62174, + "meetup": 62176 +}; \ No newline at end of file