├── .gitignore ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── codegen.ts ├── example ├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── flutter_vector_icons_gallery │ │ │ │ │ └── MainActivity.kt │ │ │ └── res │ │ │ │ ├── drawable-v21 │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-night │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ └── styles.xml │ │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── Runner-Bridging-Header.h ├── lib │ ├── data.dart │ ├── icons.dart │ └── main.dart ├── linux │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ ├── main.cc │ ├── my_application.cc │ └── my_application.h ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ └── MainMenu.xib │ │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements ├── pubspec.yaml ├── test │ └── widget_test.dart ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── index.html │ └── manifest.json └── windows │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake │ └── runner │ ├── CMakeLists.txt │ ├── Runner.rc │ ├── flutter_window.cpp │ ├── flutter_window.h │ ├── main.cpp │ ├── resource.h │ ├── resources │ └── app_icon.ico │ ├── runner.exe.manifest │ ├── utils.cpp │ ├── utils.h │ ├── win32_window.cpp │ └── win32_window.h ├── fonts ├── AntDesign.ttf ├── Entypo.ttf ├── EvilIcons.ttf ├── Feather.ttf ├── FontAwesome.ttf ├── FontAwesome5_Brands.ttf ├── FontAwesome5_Regular.ttf ├── FontAwesome5_Solid.ttf ├── Fontisto.ttf ├── Foundation.ttf ├── Ionicons.ttf ├── MaterialCommunityIcons.ttf ├── MaterialIcons.ttf ├── Octicons.ttf ├── SimpleLineIcons.ttf └── Zocial.ttf ├── lib ├── flutter_vector_icons.dart └── src │ ├── ant_design.dart │ ├── entypo.dart │ ├── evil_icons.dart │ ├── feather.dart │ ├── font_awesome.dart │ ├── font_awesome5_brands.dart │ ├── font_awesome5_regular.dart │ ├── font_awesome5_solid.dart │ ├── fontisto.dart │ ├── foundation.dart │ ├── ionicons.dart │ ├── material_community_icons.dart │ ├── material_icons.dart │ ├── octicons.dart │ ├── simple_line_icons.dart │ └── zocial.dart ├── pubspec.yaml ├── test └── flutter_vector_icons_test.dart └── vercel.json /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | ios/.generated/ 9 | ios/Flutter/Generated.xcconfig 10 | ios/Runner/GeneratedPluginRegistrant.* 11 | 12 | pubspec.lock 13 | package-lock.json 14 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deno.enable": true 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # [2.0.0](https://github.com/pd4d10/flutter-vector-icons/compare/v1.0.0...v2.0.0) (2022-09-17) 2 | 3 | ### Features 4 | 5 | - update from upstream ([494f430](https://github.com/pd4d10/flutter-vector-icons/commit/494f430ec4c3dfc6c808f4c5f8f0c750b3f20b57)) 6 | 7 | # [1.0.0](https://github.com/pd4d10/flutter-vector-icons/compare/v0.3.0...v1.0.0) (2021-03-07) 8 | 9 | ### Features 10 | 11 | - null safety ([#12](https://github.com/pd4d10/flutter-vector-icons/issues/12)) ([553728d](https://github.com/pd4d10/flutter-vector-icons/commit/553728d1e5f4cd3e2f7a2d8fc95fd1257dbac6bc)) 12 | 13 | # [0.3.0](https://github.com/pd4d10/flutter-vector-icons/compare/v0.2.1...v0.3.0) (2021-02-08) 14 | 15 | ### Bug Fixes 16 | 17 | - generate script ([5ea95bc](https://github.com/pd4d10/flutter-vector-icons/commit/5ea95bc3f5a0b3ab83ad19fc8860418429733a22)) 18 | - open new window ([c0c6f34](https://github.com/pd4d10/flutter-vector-icons/commit/c0c6f34e26cd70bc0b1c91a7ab5050278561b373)) 19 | 20 | ### Features 21 | 22 | - **gallery:** copy to clipboard on click ([b576488](https://github.com/pd4d10/flutter-vector-icons/commit/b576488a47a2bd3db3c8a7c12691fab47c7b6224)) 23 | 24 | ## [0.2.1](https://github.com/pd4d10/flutter-vector-icons/compare/v0.2.0...v0.2.1) (2019-08-25) 25 | 26 | ### Features 27 | 28 | - add search widget ([f8fae37](https://github.com/pd4d10/flutter-vector-icons/commit/f8fae37da3e6ea0c54fc5f09c1235cbd87dab278)) 29 | 30 | # [0.2.0](https://github.com/pd4d10/flutter-vector-icons/compare/v0.1.0...v0.2.0) (2019-07-18) 31 | 32 | ### Bug Fixes 33 | 34 | - null code point ([d1213dd](https://github.com/pd4d10/flutter-vector-icons/commit/d1213dd7148531a0c39f522994c1402450627807)) 35 | 36 | ### Features 37 | 38 | - add repo link ([516cebf](https://github.com/pd4d10/flutter-vector-icons/commit/516cebffab67bf51f4d7684e8d5e5900db6acf3f)) 39 | - generate font awesome 5 ([6a67c00](https://github.com/pd4d10/flutter-vector-icons/commit/6a67c0052ac691a5a99d60526cdc3c573a12bb1e)) 40 | - generate font awesome 5 fonts for web ([24dec85](https://github.com/pd4d10/flutter-vector-icons/commit/24dec8547d573ef44970c878aac9c65762a900f8)) 41 | - generate pubspec fonts ([11a2c39](https://github.com/pd4d10/flutter-vector-icons/commit/11a2c39dbeb7e801d381410f2022a1ff0ff6ea38)) 42 | - icons gallery ([77d38ee](https://github.com/pd4d10/flutter-vector-icons/commit/77d38eea5207a454daccf448da5445ce217da645)) 43 | - page style ([fbad50f](https://github.com/pd4d10/flutter-vector-icons/commit/fbad50f3b9cb4ff2e2b1504c6805db06e53b467d)) 44 | - sync fonts and glyphmaps from upstream ([101e0c5](https://github.com/pd4d10/flutter-vector-icons/commit/101e0c53950416033456be3966890809dbc6f8d5)) 45 | - update material community icons from upstream ([4a1b975](https://github.com/pd4d10/flutter-vector-icons/commit/4a1b9752d3b07b60efc94505353e274d45d5f5f0)) 46 | 47 | # [0.1.0](https://github.com/pd4d10/flutter-vector-icons/compare/v0.0.2...v0.1.0) (2019-03-06) 48 | 49 | ## [0.0.2](https://github.com/pd4d10/flutter-vector-icons/compare/812022c986f87a16601f2a7fbabe2b6bf9c73745...v0.0.2) (2019-02-15) 50 | 51 | ### Bug Fixes 52 | 53 | - add missing fontPackage ([e74c23e](https://github.com/pd4d10/flutter-vector-icons/commit/e74c23e4ad72c5244573d70a4b631d1a1719729f)) 54 | - dry run warning, remove unused files ([a8c6dee](https://github.com/pd4d10/flutter-vector-icons/commit/a8c6deededf1c1564fb0cc5a6c8f47114c983336)) 55 | - remove material icons since it is Flutter builtin ([a333094](https://github.com/pd4d10/flutter-vector-icons/commit/a3330943a45fe9b4b44796ac639bb2ae58be5721)) 56 | - use snake case for special chars ([967e2b1](https://github.com/pd4d10/flutter-vector-icons/commit/967e2b1f103bf13038213464faac7b93374848d7)) 57 | 58 | ### Features 59 | 60 | - add ttf files and generate script ([812022c](https://github.com/pd4d10/flutter-vector-icons/commit/812022c986f87a16601f2a7fbabe2b6bf9c73745)) 61 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Rongjian Zhang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_vector_icons 2 | 3 | [![pub](https://img.shields.io/pub/v/flutter_vector_icons.svg)](https://pub.dev/packagegsts/flutter_vector_icons) 4 | 5 | Customizable Icons for Flutter. Port of [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons). 6 | 7 | Preview icons with the gallery: https://flutter-vector-icons.vercel.app 8 | 9 | ## Installation 10 | 11 | ```sh 12 | flutter pub add flutter_vector_icons 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```dart 18 | import 'package:flutter/material.dart'; 19 | import 'package:flutter_vector_icons/flutter_vector_icons.dart'; 20 | 21 | class MyWidget extends StatelessWidget { 22 | Widget build(BuildContext context) { 23 | return IconButton( 24 | // Variable name is the same as font name: 25 | // 26 | // AntDesign 27 | // Entypo 28 | // EvilIcons 29 | // Feather 30 | // FontAwesome 31 | // Foundation 32 | // Ionicons 33 | // MaterialCommunityIcons 34 | // MaterialIcons 35 | // Octicons 36 | // SimpleLineIcons 37 | // Zocial 38 | // FontAwesome5Brands 39 | // FontAwesome5Regular 40 | // FontAwesome5Solid 41 | 42 | icon: Icon(MaterialCommunityIcons.star), 43 | onPressed: () { 44 | print('Star it'); 45 | }, 46 | ); 47 | } 48 | } 49 | ``` 50 | 51 | ## Version Correspondence 52 | 53 | | flutter-vector-icons | react-native-vector-icons | 54 | | -------------------- | ------------------------- | 55 | | 2.x | 9.x | 56 | | 1.x | 8.x | 57 | 58 | ## Development 59 | 60 | Fonts and code are auto generated by scripts: 61 | 62 | ```sh 63 | deno run --allow-net=data.jsdelivr.com,cdn.jsdelivr.net --allow-read=. --allow-write=. --allow-run codegen.ts 64 | ``` 65 | 66 | ## Credits 67 | 68 | - [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) 69 | 70 | ## License 71 | 72 | MIT 73 | -------------------------------------------------------------------------------- /codegen.ts: -------------------------------------------------------------------------------- 1 | import { emptyDirSync } from "https://deno.land/std@0.165.0/fs/mod.ts"; 2 | import * as path from "https://deno.land/std@0.165.0/path/mod.ts"; 3 | import * as yaml from "https://deno.land/std@0.165.0/encoding/yaml.ts"; 4 | import { 5 | camelCase, 6 | snakeCase, 7 | upperFirstCase, 8 | } from "https://deno.land/x/case@2.1.1/mod.ts"; 9 | 10 | // * Replace - with _ 11 | // * Language reserved words: new -> new_icon 12 | // * Key starts with number: 500px -> icon_500px 13 | function normalizeKey(key: string) { 14 | const reservedWords = ["new", "sync", "switch", "try", "null", "class"]; 15 | 16 | key = key.replace(/-/g, "_"); 17 | const originalKey = key; 18 | if (reservedWords.includes(key)) { 19 | key = key + "_icon"; 20 | } 21 | if (/^\d/.test(key)) { 22 | key = "icon_" + key; 23 | } 24 | if (key != originalKey) { 25 | console.log(`[name conversion]: ${originalKey} -> ${key}`); 26 | } 27 | return key; 28 | } 29 | 30 | function resolve(...ps: string[]) { 31 | return path.resolve(path.fromFileUrl(import.meta.url), "..", ...ps); 32 | } 33 | 34 | console.log("clean"); 35 | emptyDirSync(resolve("lib/src")); 36 | emptyDirSync(resolve("fonts")); 37 | 38 | console.log("fetch meta"); 39 | const base = 40 | "https://data.jsdelivr.com/v1/package/npm/react-native-vector-icons"; 41 | const { 42 | tags: { latest }, 43 | } = await fetch(base).then((res) => res.json()); 44 | console.log("latest", latest); 45 | 46 | const metaApi = `${base}@${latest}`; 47 | const blobApi = `https://cdn.jsdelivr.net/npm/react-native-vector-icons@${latest}`; 48 | 49 | const fonts = await fetch(`${metaApi}/flat`).then(async (res) => { 50 | const json: { files: { name: string }[] } = await res.json(); 51 | return json.files 52 | .filter((file) => file.name.startsWith("/Fonts/")) 53 | .map((file) => { 54 | const fileName = file.name.slice("/Fonts/".length); 55 | const name = path.basename(fileName, path.extname(fileName)); 56 | 57 | return { 58 | fileName, 59 | name, 60 | fontUrl: blobApi + file.name, 61 | glyphmapsUrl: `${blobApi}/glyphmaps/${name}.json`, 62 | }; 63 | }); 64 | }); 65 | const fontsNoFa5 = fonts.filter((v) => !v.name.includes("FontAwesome5")); 66 | const fontsFa5 = fonts.filter((v) => v.name.includes("FontAwesome5")); 67 | 68 | for (const { name, fileName, fontUrl } of fonts) { 69 | console.log("download font:", name); 70 | 71 | const res = await fetch(fontUrl); 72 | const buf = await res.arrayBuffer(); 73 | Deno.writeFileSync(resolve("fonts", fileName), new Uint8Array(buf)); 74 | } 75 | 76 | console.log("write pubspec.yaml"); 77 | const pubspec = yaml.parse( 78 | Deno.readTextFileSync(resolve("pubspec.yaml")) 79 | ) as any; 80 | pubspec.flutter.fonts = fonts.map(({ name, fileName }) => ({ 81 | family: name, 82 | fonts: [{ asset: `fonts/${fileName}` }], 83 | })); 84 | Deno.writeTextFileSync( 85 | resolve("pubspec.yaml"), 86 | yaml.stringify(pubspec, { 87 | // TODO: quote 88 | }) 89 | ); 90 | 91 | console.log("write lib/flutter_vector_icons.dart"); 92 | let entryCode = "library flutter_vector_icons;"; 93 | fonts.forEach(({ name }) => { 94 | entryCode += `export 'src/${snakeCase(name)}.dart';`; 95 | }); 96 | Deno.writeTextFileSync(resolve("lib/flutter_vector_icons.dart"), entryCode); 97 | 98 | const webData: Record> = {}; 99 | for (const { name, glyphmapsUrl } of fontsNoFa5) { 100 | console.log(`write ${name}.dart`); 101 | 102 | const iconMap: Record = await fetch(glyphmapsUrl).then( 103 | (res) => res.json() 104 | ); 105 | webData[name] = {}; 106 | 107 | let code = `import 'package:flutter/widgets.dart'; class ${name} { 108 | static const _family = '${name}'; 109 | static const _package = 'flutter_vector_icons';`; 110 | 111 | for (const [key, value] of Object.entries(iconMap)) { 112 | webData[name][normalizeKey(key)] = value; 113 | 114 | code += `static const ${normalizeKey( 115 | key 116 | )} = IconData(${value}, fontFamily: _family, fontPackage: _package);`; 117 | } 118 | code += "}"; 119 | 120 | Deno.writeTextFileSync(resolve(`lib/src/${snakeCase(name)}.dart`), code); 121 | console.log(`${name} done`); 122 | } 123 | 124 | console.log("fetch fa5 meta"); 125 | const fa5Meta = await fetch( 126 | `${blobApi}/glyphmaps/FontAwesome5Free_meta.json` 127 | ).then((res) => res.json()); 128 | 129 | const fa5GlyphMap = await fetch( 130 | `${blobApi}/glyphmaps/FontAwesome5Free.json` 131 | ).then((res) => res.json()); 132 | 133 | fontsFa5.forEach(({ name }) => { 134 | console.log("write dart file", name); 135 | 136 | let code = `import 'package:flutter/widgets.dart'; class ${upperFirstCase( 137 | camelCase(name) 138 | )} { 139 | static const _family = '${name}'; 140 | static const _package = 'flutter_vector_icons';`; 141 | 142 | // FontAwesome5_Brands -> brands 143 | const groupKey = name.split("_")[1].toLowerCase(); 144 | webData[name] = {}; 145 | for (const key of fa5Meta[groupKey]) { 146 | webData[name][normalizeKey(key)] = fa5GlyphMap[key]; 147 | 148 | const codePoint = fa5GlyphMap[key]; 149 | if (codePoint == null) { 150 | throw new Error(`codePoint null: ${name}, ${key}`); 151 | } 152 | code += `static const ${normalizeKey( 153 | key 154 | )} = IconData(${codePoint}, fontFamily: _family, fontPackage: _package);`; 155 | } 156 | code += "}"; 157 | 158 | Deno.writeTextFileSync(resolve(`lib/src/${snakeCase(name)}.dart`), code); 159 | }); 160 | 161 | console.log(`write web data`); 162 | Deno.writeTextFileSync( 163 | resolve("example/lib/data.dart"), 164 | `const data = ${JSON.stringify(webData)};` 165 | ); 166 | 167 | await Deno.run({ 168 | cmd: ["dart", "format", "lib", "example"], 169 | cwd: resolve("."), 170 | }).status(); 171 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled. 5 | 6 | version: 7 | revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 17 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 18 | - platform: android 19 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 20 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 21 | - platform: ios 22 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 23 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 24 | - platform: linux 25 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 26 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 27 | - platform: macos 28 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 29 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 30 | - platform: web 31 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 32 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 33 | - platform: windows 34 | create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 35 | base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # flutter_vector_icons_gallery 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion flutter.compileSdkVersion 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 | applicationId "com.example.flutter_vector_icons_gallery" 48 | // You can update the following values to match your application needs. 49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 50 | minSdkVersion flutter.minSdkVersion 51 | targetSdkVersion flutter.targetSdkVersion 52 | versionCode flutterVersionCode.toInteger() 53 | versionName flutterVersionName 54 | } 55 | 56 | buildTypes { 57 | release { 58 | // TODO: Add your own signing config for the release build. 59 | // Signing with the debug keys for now, so `flutter run --release` works. 60 | signingConfig signingConfigs.debug 61 | } 62 | } 63 | } 64 | 65 | flutter { 66 | source '../..' 67 | } 68 | 69 | dependencies { 70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 71 | } 72 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/example/flutter_vector_icons_gallery/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_vector_icons_gallery 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 6 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter Vector Icons Gallery 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_vector_icons_gallery 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/lib/icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | 4 | import 'data.dart'; 5 | 6 | class MyIcons extends StatelessWidget { 7 | final String? query; 8 | 9 | const MyIcons(this.query, {super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return ListView.builder( 14 | itemCount: data.entries.length, 15 | itemBuilder: (context, index) { 16 | var e0 = data.entries.toList()[index]; 17 | var items = e0.value.entries 18 | .where((e1) => query == null || e1.key.contains(query!)) 19 | .toList(); 20 | 21 | return Column( 22 | children: [ 23 | Container( 24 | padding: const EdgeInsets.symmetric(vertical: 20), 25 | child: Text(e0.key, 26 | style: const TextStyle( 27 | fontSize: 24, fontWeight: FontWeight.w500)), 28 | ), 29 | Wrap( 30 | children: items.map((e1) { 31 | return InkWell( 32 | onTap: () async { 33 | final text = '${e0.key}.${e1.key}'; 34 | await Clipboard.setData(ClipboardData(text: text)); 35 | ScaffoldMessenger.of(context).showSnackBar( 36 | const SnackBar(content: Text('Copied to Clipboard'))); 37 | }, 38 | child: Container( 39 | width: 160, 40 | padding: const EdgeInsets.all(20), 41 | child: Column( 42 | children: [ 43 | Icon( 44 | IconData( 45 | e1.value, 46 | fontFamily: e0.key, 47 | fontPackage: 'flutter_vector_icons', 48 | ), 49 | size: 32, 50 | ), 51 | Container( 52 | padding: const EdgeInsets.only(top: 10), 53 | child: Text(e1.key), 54 | ) 55 | ], 56 | ), 57 | ), 58 | ); 59 | }).toList(), 60 | ) 61 | ], 62 | ); 63 | }, 64 | ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_vector_icons_gallery/icons.dart'; 3 | import 'package:url_launcher/url_launcher.dart'; 4 | 5 | void main() => runApp(const MyApp()); 6 | 7 | const title = 'Flutter Vector Icons Gallery'; 8 | 9 | class MyApp extends StatelessWidget { 10 | const MyApp({super.key}); 11 | 12 | // This widget is the root of your application. 13 | @override 14 | Widget build(BuildContext context) { 15 | return MaterialApp( 16 | title: title, 17 | theme: ThemeData( 18 | primarySwatch: Colors.blue, 19 | ), 20 | home: MyHomePage(title: title), 21 | ); 22 | } 23 | } 24 | 25 | class _MySearchDelegate extends SearchDelegate { 26 | @override 27 | Widget buildLeading(BuildContext context) { 28 | return IconButton( 29 | tooltip: 'Back', 30 | icon: AnimatedIcon( 31 | icon: AnimatedIcons.menu_arrow, 32 | progress: transitionAnimation, 33 | ), 34 | onPressed: () { 35 | close(context, null); 36 | }, 37 | ); 38 | } 39 | 40 | @override 41 | Widget buildSuggestions(BuildContext context) { 42 | return MyIcons(query); 43 | } 44 | 45 | @override 46 | Widget buildResults(BuildContext context) { 47 | return MyIcons(query); 48 | } 49 | 50 | @override 51 | List buildActions(BuildContext context) { 52 | return [ 53 | IconButton( 54 | tooltip: 'Clear', 55 | icon: const Icon(Icons.clear), 56 | onPressed: () { 57 | query = ''; 58 | showSuggestions(context); 59 | }, 60 | ) 61 | ]; 62 | } 63 | } 64 | 65 | class MyHomePage extends StatelessWidget { 66 | MyHomePage({Key? key, this.title}) : super(key: key); 67 | 68 | final String? title; 69 | final _delegate = _MySearchDelegate(); 70 | 71 | @override 72 | Widget build(BuildContext context) { 73 | return Scaffold( 74 | appBar: AppBar( 75 | title: Text(title!), 76 | actions: [ 77 | IconButton( 78 | tooltip: 'Search', 79 | icon: const Icon(Icons.search), 80 | onPressed: () async { 81 | await showSearch( 82 | context: context, 83 | delegate: _delegate, 84 | ); 85 | }, 86 | ), 87 | IconButton( 88 | icon: const Icon(Icons.code), 89 | tooltip: 'Source Code', 90 | onPressed: () { 91 | launchUrl( 92 | Uri.parse('https://github.com/pd4d10/flutter-vector-icons')); 93 | }, 94 | ) 95 | ], 96 | ), 97 | body: const MyIcons(null), 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /example/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /example/linux/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.10) 3 | project(runner LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "flutter_vector_icons_gallery") 8 | # The unique GTK application identifier for this application. See: 9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID 10 | set(APPLICATION_ID "com.example.flutter_vector_icons_gallery") 11 | 12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 13 | # versions of CMake. 14 | cmake_policy(SET CMP0063 NEW) 15 | 16 | # Load bundled libraries from the lib/ directory relative to the binary. 17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 18 | 19 | # Root filesystem for cross-building. 20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT) 21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) 22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) 23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 27 | endif() 28 | 29 | # Define build configuration options. 30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 31 | set(CMAKE_BUILD_TYPE "Debug" CACHE 32 | STRING "Flutter build mode" FORCE) 33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 34 | "Debug" "Profile" "Release") 35 | endif() 36 | 37 | # Compilation settings that should be applied to most targets. 38 | # 39 | # Be cautious about adding new options here, as plugins use this function by 40 | # default. In most cases, you should add new options to specific targets instead 41 | # of modifying this function. 42 | function(APPLY_STANDARD_SETTINGS TARGET) 43 | target_compile_features(${TARGET} PUBLIC cxx_std_14) 44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror) 45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") 46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") 47 | endfunction() 48 | 49 | # Flutter library and tool build rules. 50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 51 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 52 | 53 | # System-level dependencies. 54 | find_package(PkgConfig REQUIRED) 55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 56 | 57 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") 58 | 59 | # Define the application target. To change its name, change BINARY_NAME above, 60 | # not the value here, or `flutter run` will no longer work. 61 | # 62 | # Any new source files that you add to the application should be added here. 63 | add_executable(${BINARY_NAME} 64 | "main.cc" 65 | "my_application.cc" 66 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 67 | ) 68 | 69 | # Apply the standard set of build settings. This can be removed for applications 70 | # that need different build settings. 71 | apply_standard_settings(${BINARY_NAME}) 72 | 73 | # Add dependency libraries. Add any application-specific dependencies here. 74 | target_link_libraries(${BINARY_NAME} PRIVATE flutter) 75 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) 76 | 77 | # Run the Flutter tool portions of the build. This must not be removed. 78 | add_dependencies(${BINARY_NAME} flutter_assemble) 79 | 80 | # Only the install-generated bundle's copy of the executable will launch 81 | # correctly, since the resources must in the right relative locations. To avoid 82 | # people trying to run the unbundled copy, put it in a subdirectory instead of 83 | # the default top-level location. 84 | set_target_properties(${BINARY_NAME} 85 | PROPERTIES 86 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" 87 | ) 88 | 89 | # Generated plugin build rules, which manage building the plugins and adding 90 | # them to the application. 91 | include(flutter/generated_plugins.cmake) 92 | 93 | 94 | # === Installation === 95 | # By default, "installing" just makes a relocatable bundle in the build 96 | # directory. 97 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") 98 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 99 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 100 | endif() 101 | 102 | # Start with a clean build bundle directory every time. 103 | install(CODE " 104 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") 105 | " COMPONENT Runtime) 106 | 107 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 108 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") 109 | 110 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 111 | COMPONENT Runtime) 112 | 113 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 114 | COMPONENT Runtime) 115 | 116 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 117 | COMPONENT Runtime) 118 | 119 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) 120 | install(FILES "${bundled_library}" 121 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 122 | COMPONENT Runtime) 123 | endforeach(bundled_library) 124 | 125 | # Fully re-copy the assets directory on each build to avoid having stale files 126 | # from a previous install. 127 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 128 | install(CODE " 129 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 130 | " COMPONENT Runtime) 131 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 132 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 133 | 134 | # Install the AOT library on non-Debug builds only. 135 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") 136 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 137 | COMPONENT Runtime) 138 | endif() 139 | -------------------------------------------------------------------------------- /example/linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_linux 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /example/linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /example/linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen* screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "flutter_vector_icons_gallery"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "flutter_vector_icons_gallery"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GObject::dispose. 85 | static void my_application_dispose(GObject* object) { 86 | MyApplication* self = MY_APPLICATION(object); 87 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 88 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 89 | } 90 | 91 | static void my_application_class_init(MyApplicationClass* klass) { 92 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 93 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 94 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 95 | } 96 | 97 | static void my_application_init(MyApplication* self) {} 98 | 99 | MyApplication* my_application_new() { 100 | return MY_APPLICATION(g_object_new(my_application_get_type(), 101 | "application-id", APPLICATION_ID, 102 | "flags", G_APPLICATION_NON_UNIQUE, 103 | nullptr)); 104 | } 105 | -------------------------------------------------------------------------------- /example/linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /example/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import url_launcher_macos 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /example/macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.11' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_macos_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /example/macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FlutterMacOS (1.0.0) 3 | - url_launcher_macos (0.0.1): 4 | - FlutterMacOS 5 | 6 | DEPENDENCIES: 7 | - FlutterMacOS (from `Flutter/ephemeral`) 8 | - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) 9 | 10 | EXTERNAL SOURCES: 11 | FlutterMacOS: 12 | :path: Flutter/ephemeral 13 | url_launcher_macos: 14 | :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos 15 | 16 | SPEC CHECKSUMS: 17 | FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811 18 | url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3 19 | 20 | PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c 21 | 22 | COCOAPODS: 1.11.3 23 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /example/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /example/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = flutter_vector_icons_gallery 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterVectorIconsGallery 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /example/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_vector_icons_gallery 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | # In Windows, build-name is used as the major, minor, and patch parts 19 | # of the product and file versions while build-number is used as the build suffix. 20 | version: 1.0.0+1 21 | 22 | environment: 23 | sdk: ">=2.18.0 <3.0.0" 24 | 25 | # Dependencies specify other packages that your package needs in order to work. 26 | # To automatically upgrade your package dependencies to the latest versions 27 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 28 | # dependencies can be manually updated by changing the version numbers below to 29 | # the latest version available on pub.dev. To see which dependencies have newer 30 | # versions available, run `flutter pub outdated`. 31 | dependencies: 32 | flutter: 33 | sdk: flutter 34 | flutter_vector_icons: 35 | path: ../ 36 | url_launcher: 37 | 38 | dev_dependencies: 39 | flutter_test: 40 | sdk: flutter 41 | 42 | # The "flutter_lints" package below contains a set of recommended lints to 43 | # encourage good coding practices. The lint set provided by the package is 44 | # activated in the `analysis_options.yaml` file located at the root of your 45 | # package. See that file for information about deactivating specific lint 46 | # rules and activating additional ones. 47 | flutter_lints: ^2.0.0 48 | 49 | # For information on the generic Dart part of this file, see the 50 | # following page: https://dart.dev/tools/pub/pubspec 51 | 52 | # The following section is specific to Flutter packages. 53 | flutter: 54 | # The following line ensures that the Material Icons font is 55 | # included with your application, so that you can use the icons in 56 | # the material Icons class. 57 | uses-material-design: true 58 | 59 | # To add assets to your application, add an assets section, like this: 60 | # assets: 61 | # - images/a_dot_burr.jpeg 62 | # - images/a_dot_ham.jpeg 63 | 64 | # An image asset can refer to one or more resolution-specific "variants", see 65 | # https://flutter.dev/assets-and-images/#resolution-aware 66 | 67 | # For details regarding adding assets from package dependencies, see 68 | # https://flutter.dev/assets-and-images/#from-packages 69 | 70 | # To add custom fonts to your application, add a fonts section here, 71 | # in this "flutter" section. Each entry in this list should have a 72 | # "family" key with the font family name, and a "fonts" key with a 73 | # list giving the asset and other descriptors for the font. For 74 | # example: 75 | # fonts: 76 | # - family: Schyler 77 | # fonts: 78 | # - asset: fonts/Schyler-Regular.ttf 79 | # - asset: fonts/Schyler-Italic.ttf 80 | # style: italic 81 | # - family: Trajan Pro 82 | # fonts: 83 | # - asset: fonts/TrajanPro.ttf 84 | # - asset: fonts/TrajanPro_Bold.ttf 85 | # weight: 700 86 | # 87 | # For details regarding fonts from package dependencies, 88 | # see https://flutter.dev/custom-fonts/#from-packages 89 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_vector_icons_gallery/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /example/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/web/favicon.png -------------------------------------------------------------------------------- /example/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/web/icons/Icon-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/web/icons/Icon-512.png -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /example/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | flutter_vector_icons_gallery 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /example/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter_vector_icons_gallery", 3 | "short_name": "flutter_vector_icons_gallery", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /example/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /example/windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.14) 3 | project(flutter_vector_icons_gallery LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "flutter_vector_icons_gallery") 8 | 9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 10 | # versions of CMake. 11 | cmake_policy(SET CMP0063 NEW) 12 | 13 | # Define build configuration option. 14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 15 | if(IS_MULTICONFIG) 16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 17 | CACHE STRING "" FORCE) 18 | else() 19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 20 | set(CMAKE_BUILD_TYPE "Debug" CACHE 21 | STRING "Flutter build mode" FORCE) 22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 23 | "Debug" "Profile" "Release") 24 | endif() 25 | endif() 26 | # Define settings for the Profile build mode. 27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 31 | 32 | # Use Unicode for all projects. 33 | add_definitions(-DUNICODE -D_UNICODE) 34 | 35 | # Compilation settings that should be applied to most targets. 36 | # 37 | # Be cautious about adding new options here, as plugins use this function by 38 | # default. In most cases, you should add new options to specific targets instead 39 | # of modifying this function. 40 | function(APPLY_STANDARD_SETTINGS TARGET) 41 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 43 | target_compile_options(${TARGET} PRIVATE /EHsc) 44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 46 | endfunction() 47 | 48 | # Flutter library and tool build rules. 49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 50 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 51 | 52 | # Application build; see runner/CMakeLists.txt. 53 | add_subdirectory("runner") 54 | 55 | # Generated plugin build rules, which manage building the plugins and adding 56 | # them to the application. 57 | include(flutter/generated_plugins.cmake) 58 | 59 | 60 | # === Installation === 61 | # Support files are copied into place next to the executable, so that it can 62 | # run in place. This is done instead of making a separate bundle (as on Linux) 63 | # so that building and running from within Visual Studio will work. 64 | set(BUILD_BUNDLE_DIR "$") 65 | # Make the "install" step default, as it's required to run. 66 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 67 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 68 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 69 | endif() 70 | 71 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 72 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 73 | 74 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 75 | COMPONENT Runtime) 76 | 77 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 78 | COMPONENT Runtime) 79 | 80 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 81 | COMPONENT Runtime) 82 | 83 | if(PLUGIN_BUNDLED_LIBRARIES) 84 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 85 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 86 | COMPONENT Runtime) 87 | endif() 88 | 89 | # Fully re-copy the assets directory on each build to avoid having stale files 90 | # from a previous install. 91 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 92 | install(CODE " 93 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 94 | " COMPONENT Runtime) 95 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 96 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 97 | 98 | # Install the AOT library on non-Debug builds only. 99 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 100 | CONFIGURATIONS Profile;Release 101 | COMPONENT Runtime) 102 | -------------------------------------------------------------------------------- /example/windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # === Flutter Library === 14 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 15 | 16 | # Published to parent scope for install step. 17 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 18 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 19 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 20 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 21 | 22 | list(APPEND FLUTTER_LIBRARY_HEADERS 23 | "flutter_export.h" 24 | "flutter_windows.h" 25 | "flutter_messenger.h" 26 | "flutter_plugin_registrar.h" 27 | "flutter_texture_registrar.h" 28 | ) 29 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 30 | add_library(flutter INTERFACE) 31 | target_include_directories(flutter INTERFACE 32 | "${EPHEMERAL_DIR}" 33 | ) 34 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 35 | add_dependencies(flutter flutter_assemble) 36 | 37 | # === Wrapper === 38 | list(APPEND CPP_WRAPPER_SOURCES_CORE 39 | "core_implementations.cc" 40 | "standard_codec.cc" 41 | ) 42 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 43 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 44 | "plugin_registrar.cc" 45 | ) 46 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 47 | list(APPEND CPP_WRAPPER_SOURCES_APP 48 | "flutter_engine.cc" 49 | "flutter_view_controller.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 52 | 53 | # Wrapper sources needed for a plugin. 54 | add_library(flutter_wrapper_plugin STATIC 55 | ${CPP_WRAPPER_SOURCES_CORE} 56 | ${CPP_WRAPPER_SOURCES_PLUGIN} 57 | ) 58 | apply_standard_settings(flutter_wrapper_plugin) 59 | set_target_properties(flutter_wrapper_plugin PROPERTIES 60 | POSITION_INDEPENDENT_CODE ON) 61 | set_target_properties(flutter_wrapper_plugin PROPERTIES 62 | CXX_VISIBILITY_PRESET hidden) 63 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 64 | target_include_directories(flutter_wrapper_plugin PUBLIC 65 | "${WRAPPER_ROOT}/include" 66 | ) 67 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 68 | 69 | # Wrapper sources needed for the runner. 70 | add_library(flutter_wrapper_app STATIC 71 | ${CPP_WRAPPER_SOURCES_CORE} 72 | ${CPP_WRAPPER_SOURCES_APP} 73 | ) 74 | apply_standard_settings(flutter_wrapper_app) 75 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 76 | target_include_directories(flutter_wrapper_app PUBLIC 77 | "${WRAPPER_ROOT}/include" 78 | ) 79 | add_dependencies(flutter_wrapper_app flutter_assemble) 80 | 81 | # === Flutter tool backend === 82 | # _phony_ is a non-existent file to force this command to run every time, 83 | # since currently there's no way to get a full input/output list from the 84 | # flutter tool. 85 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 86 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 87 | add_custom_command( 88 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 89 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 90 | ${CPP_WRAPPER_SOURCES_APP} 91 | ${PHONY_OUTPUT} 92 | COMMAND ${CMAKE_COMMAND} -E env 93 | ${FLUTTER_TOOL_ENVIRONMENT} 94 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 95 | windows-x64 $ 96 | VERBATIM 97 | ) 98 | add_custom_target(flutter_assemble DEPENDS 99 | "${FLUTTER_LIBRARY}" 100 | ${FLUTTER_LIBRARY_HEADERS} 101 | ${CPP_WRAPPER_SOURCES_CORE} 102 | ${CPP_WRAPPER_SOURCES_PLUGIN} 103 | ${CPP_WRAPPER_SOURCES_APP} 104 | ) 105 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void RegisterPlugins(flutter::PluginRegistry* registry) { 12 | UrlLauncherWindowsRegisterWithRegistrar( 13 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 14 | } 15 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_windows 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /example/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 37 | 38 | # Run the Flutter tool portions of the build. This must not be removed. 39 | add_dependencies(${BINARY_NAME} flutter_assemble) 40 | -------------------------------------------------------------------------------- /example/windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "flutter_vector_icons_gallery" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "flutter_vector_icons_gallery" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "flutter_vector_icons_gallery.exe" "\0" 98 | VALUE "ProductName", "flutter_vector_icons_gallery" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /example/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | return true; 30 | } 31 | 32 | void FlutterWindow::OnDestroy() { 33 | if (flutter_controller_) { 34 | flutter_controller_ = nullptr; 35 | } 36 | 37 | Win32Window::OnDestroy(); 38 | } 39 | 40 | LRESULT 41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 42 | WPARAM const wparam, 43 | LPARAM const lparam) noexcept { 44 | // Give Flutter, including plugins, an opportunity to handle window messages. 45 | if (flutter_controller_) { 46 | std::optional result = 47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 48 | lparam); 49 | if (result) { 50 | return *result; 51 | } 52 | } 53 | 54 | switch (message) { 55 | case WM_FONTCHANGE: 56 | flutter_controller_->engine()->ReloadSystemFonts(); 57 | break; 58 | } 59 | 60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 61 | } 62 | -------------------------------------------------------------------------------- /example/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /example/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.CreateAndShow(L"flutter_vector_icons_gallery", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /example/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /example/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/example/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /example/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | std::string utf8_string; 52 | if (target_length == 0 || target_length > utf8_string.max_size()) { 53 | return utf8_string; 54 | } 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /example/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /example/windows/runner/win32_window.cpp: -------------------------------------------------------------------------------- 1 | #include "win32_window.h" 2 | 3 | #include 4 | 5 | #include "resource.h" 6 | 7 | namespace { 8 | 9 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; 10 | 11 | // The number of Win32Window objects that currently exist. 12 | static int g_active_window_count = 0; 13 | 14 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); 15 | 16 | // Scale helper to convert logical scaler values to physical using passed in 17 | // scale factor 18 | int Scale(int source, double scale_factor) { 19 | return static_cast(source * scale_factor); 20 | } 21 | 22 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. 23 | // This API is only needed for PerMonitor V1 awareness mode. 24 | void EnableFullDpiSupportIfAvailable(HWND hwnd) { 25 | HMODULE user32_module = LoadLibraryA("User32.dll"); 26 | if (!user32_module) { 27 | return; 28 | } 29 | auto enable_non_client_dpi_scaling = 30 | reinterpret_cast( 31 | GetProcAddress(user32_module, "EnableNonClientDpiScaling")); 32 | if (enable_non_client_dpi_scaling != nullptr) { 33 | enable_non_client_dpi_scaling(hwnd); 34 | FreeLibrary(user32_module); 35 | } 36 | } 37 | 38 | } // namespace 39 | 40 | // Manages the Win32Window's window class registration. 41 | class WindowClassRegistrar { 42 | public: 43 | ~WindowClassRegistrar() = default; 44 | 45 | // Returns the singleton registar instance. 46 | static WindowClassRegistrar* GetInstance() { 47 | if (!instance_) { 48 | instance_ = new WindowClassRegistrar(); 49 | } 50 | return instance_; 51 | } 52 | 53 | // Returns the name of the window class, registering the class if it hasn't 54 | // previously been registered. 55 | const wchar_t* GetWindowClass(); 56 | 57 | // Unregisters the window class. Should only be called if there are no 58 | // instances of the window. 59 | void UnregisterWindowClass(); 60 | 61 | private: 62 | WindowClassRegistrar() = default; 63 | 64 | static WindowClassRegistrar* instance_; 65 | 66 | bool class_registered_ = false; 67 | }; 68 | 69 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; 70 | 71 | const wchar_t* WindowClassRegistrar::GetWindowClass() { 72 | if (!class_registered_) { 73 | WNDCLASS window_class{}; 74 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); 75 | window_class.lpszClassName = kWindowClassName; 76 | window_class.style = CS_HREDRAW | CS_VREDRAW; 77 | window_class.cbClsExtra = 0; 78 | window_class.cbWndExtra = 0; 79 | window_class.hInstance = GetModuleHandle(nullptr); 80 | window_class.hIcon = 81 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); 82 | window_class.hbrBackground = 0; 83 | window_class.lpszMenuName = nullptr; 84 | window_class.lpfnWndProc = Win32Window::WndProc; 85 | RegisterClass(&window_class); 86 | class_registered_ = true; 87 | } 88 | return kWindowClassName; 89 | } 90 | 91 | void WindowClassRegistrar::UnregisterWindowClass() { 92 | UnregisterClass(kWindowClassName, nullptr); 93 | class_registered_ = false; 94 | } 95 | 96 | Win32Window::Win32Window() { 97 | ++g_active_window_count; 98 | } 99 | 100 | Win32Window::~Win32Window() { 101 | --g_active_window_count; 102 | Destroy(); 103 | } 104 | 105 | bool Win32Window::CreateAndShow(const std::wstring& title, 106 | const Point& origin, 107 | const Size& size) { 108 | Destroy(); 109 | 110 | const wchar_t* window_class = 111 | WindowClassRegistrar::GetInstance()->GetWindowClass(); 112 | 113 | const POINT target_point = {static_cast(origin.x), 114 | static_cast(origin.y)}; 115 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); 116 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); 117 | double scale_factor = dpi / 96.0; 118 | 119 | HWND window = CreateWindow( 120 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, 121 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), 122 | Scale(size.width, scale_factor), Scale(size.height, scale_factor), 123 | nullptr, nullptr, GetModuleHandle(nullptr), this); 124 | 125 | if (!window) { 126 | return false; 127 | } 128 | 129 | return OnCreate(); 130 | } 131 | 132 | // static 133 | LRESULT CALLBACK Win32Window::WndProc(HWND const window, 134 | UINT const message, 135 | WPARAM const wparam, 136 | LPARAM const lparam) noexcept { 137 | if (message == WM_NCCREATE) { 138 | auto window_struct = reinterpret_cast(lparam); 139 | SetWindowLongPtr(window, GWLP_USERDATA, 140 | reinterpret_cast(window_struct->lpCreateParams)); 141 | 142 | auto that = static_cast(window_struct->lpCreateParams); 143 | EnableFullDpiSupportIfAvailable(window); 144 | that->window_handle_ = window; 145 | } else if (Win32Window* that = GetThisFromHandle(window)) { 146 | return that->MessageHandler(window, message, wparam, lparam); 147 | } 148 | 149 | return DefWindowProc(window, message, wparam, lparam); 150 | } 151 | 152 | LRESULT 153 | Win32Window::MessageHandler(HWND hwnd, 154 | UINT const message, 155 | WPARAM const wparam, 156 | LPARAM const lparam) noexcept { 157 | switch (message) { 158 | case WM_DESTROY: 159 | window_handle_ = nullptr; 160 | Destroy(); 161 | if (quit_on_close_) { 162 | PostQuitMessage(0); 163 | } 164 | return 0; 165 | 166 | case WM_DPICHANGED: { 167 | auto newRectSize = reinterpret_cast(lparam); 168 | LONG newWidth = newRectSize->right - newRectSize->left; 169 | LONG newHeight = newRectSize->bottom - newRectSize->top; 170 | 171 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, 172 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE); 173 | 174 | return 0; 175 | } 176 | case WM_SIZE: { 177 | RECT rect = GetClientArea(); 178 | if (child_content_ != nullptr) { 179 | // Size and position the child window. 180 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, 181 | rect.bottom - rect.top, TRUE); 182 | } 183 | return 0; 184 | } 185 | 186 | case WM_ACTIVATE: 187 | if (child_content_ != nullptr) { 188 | SetFocus(child_content_); 189 | } 190 | return 0; 191 | } 192 | 193 | return DefWindowProc(window_handle_, message, wparam, lparam); 194 | } 195 | 196 | void Win32Window::Destroy() { 197 | OnDestroy(); 198 | 199 | if (window_handle_) { 200 | DestroyWindow(window_handle_); 201 | window_handle_ = nullptr; 202 | } 203 | if (g_active_window_count == 0) { 204 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); 205 | } 206 | } 207 | 208 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { 209 | return reinterpret_cast( 210 | GetWindowLongPtr(window, GWLP_USERDATA)); 211 | } 212 | 213 | void Win32Window::SetChildContent(HWND content) { 214 | child_content_ = content; 215 | SetParent(content, window_handle_); 216 | RECT frame = GetClientArea(); 217 | 218 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left, 219 | frame.bottom - frame.top, true); 220 | 221 | SetFocus(child_content_); 222 | } 223 | 224 | RECT Win32Window::GetClientArea() { 225 | RECT frame; 226 | GetClientRect(window_handle_, &frame); 227 | return frame; 228 | } 229 | 230 | HWND Win32Window::GetHandle() { 231 | return window_handle_; 232 | } 233 | 234 | void Win32Window::SetQuitOnClose(bool quit_on_close) { 235 | quit_on_close_ = quit_on_close; 236 | } 237 | 238 | bool Win32Window::OnCreate() { 239 | // No-op; provided for subclasses. 240 | return true; 241 | } 242 | 243 | void Win32Window::OnDestroy() { 244 | // No-op; provided for subclasses. 245 | } 246 | -------------------------------------------------------------------------------- /example/windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates and shows a win32 window with |title| and position and size using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size to will treat the width height passed in to this function 35 | // as logical pixels and scale to appropriate for the default monitor. Returns 36 | // true if the window was created successfully. 37 | bool CreateAndShow(const std::wstring& title, 38 | const Point& origin, 39 | const Size& size); 40 | 41 | // Release OS resources associated with window. 42 | void Destroy(); 43 | 44 | // Inserts |content| into the window tree. 45 | void SetChildContent(HWND content); 46 | 47 | // Returns the backing Window handle to enable clients to set icon and other 48 | // window properties. Returns nullptr if the window has been destroyed. 49 | HWND GetHandle(); 50 | 51 | // If true, closing this window will quit the application. 52 | void SetQuitOnClose(bool quit_on_close); 53 | 54 | // Return a RECT representing the bounds of the current client area. 55 | RECT GetClientArea(); 56 | 57 | protected: 58 | // Processes and route salient window messages for mouse handling, 59 | // size change and DPI. Delegates handling of these to member overloads that 60 | // inheriting classes can handle. 61 | virtual LRESULT MessageHandler(HWND window, 62 | UINT const message, 63 | WPARAM const wparam, 64 | LPARAM const lparam) noexcept; 65 | 66 | // Called when CreateAndShow is called, allowing subclass window-related 67 | // setup. Subclasses should return false if setup fails. 68 | virtual bool OnCreate(); 69 | 70 | // Called when Destroy is called. 71 | virtual void OnDestroy(); 72 | 73 | private: 74 | friend class WindowClassRegistrar; 75 | 76 | // OS callback called by message pump. Handles the WM_NCCREATE message which 77 | // is passed when the non-client area is being created and enables automatic 78 | // non-client DPI scaling so that the non-client area automatically 79 | // responsponds to changes in DPI. All other messages are handled by 80 | // MessageHandler. 81 | static LRESULT CALLBACK WndProc(HWND const window, 82 | UINT const message, 83 | WPARAM const wparam, 84 | LPARAM const lparam) noexcept; 85 | 86 | // Retrieves a class instance pointer for |window| 87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 88 | 89 | bool quit_on_close_ = false; 90 | 91 | // window handle for top level window. 92 | HWND window_handle_ = nullptr; 93 | 94 | // window handle for hosted content. 95 | HWND child_content_ = nullptr; 96 | }; 97 | 98 | #endif // RUNNER_WIN32_WINDOW_H_ 99 | -------------------------------------------------------------------------------- /fonts/AntDesign.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/AntDesign.ttf -------------------------------------------------------------------------------- /fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Entypo.ttf -------------------------------------------------------------------------------- /fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Feather.ttf -------------------------------------------------------------------------------- /fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /fonts/FontAwesome5_Brands.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/FontAwesome5_Brands.ttf -------------------------------------------------------------------------------- /fonts/FontAwesome5_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/FontAwesome5_Regular.ttf -------------------------------------------------------------------------------- /fonts/FontAwesome5_Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/FontAwesome5_Solid.ttf -------------------------------------------------------------------------------- /fonts/Fontisto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Fontisto.ttf -------------------------------------------------------------------------------- /fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Foundation.ttf -------------------------------------------------------------------------------- /fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Octicons.ttf -------------------------------------------------------------------------------- /fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/flutter-vector-icons/8d791e27f7b9162a6c7ee5be9231f1973b6dec5e/fonts/Zocial.ttf -------------------------------------------------------------------------------- /lib/flutter_vector_icons.dart: -------------------------------------------------------------------------------- 1 | library flutter_vector_icons; 2 | 3 | export 'src/ant_design.dart'; 4 | export 'src/entypo.dart'; 5 | export 'src/evil_icons.dart'; 6 | export 'src/feather.dart'; 7 | export 'src/font_awesome.dart'; 8 | export 'src/font_awesome5_brands.dart'; 9 | export 'src/font_awesome5_regular.dart'; 10 | export 'src/font_awesome5_solid.dart'; 11 | export 'src/fontisto.dart'; 12 | export 'src/foundation.dart'; 13 | export 'src/ionicons.dart'; 14 | export 'src/material_community_icons.dart'; 15 | export 'src/material_icons.dart'; 16 | export 'src/octicons.dart'; 17 | export 'src/simple_line_icons.dart'; 18 | export 'src/zocial.dart'; 19 | -------------------------------------------------------------------------------- /lib/src/evil_icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class EvilIcons { 4 | static const _family = 'EvilIcons'; 5 | static const _package = 'flutter_vector_icons'; 6 | static const archive = 7 | IconData(61696, fontFamily: _family, fontPackage: _package); 8 | static const arrow_down = 9 | IconData(61697, fontFamily: _family, fontPackage: _package); 10 | static const arrow_left = 11 | IconData(61698, fontFamily: _family, fontPackage: _package); 12 | static const arrow_right = 13 | IconData(61699, fontFamily: _family, fontPackage: _package); 14 | static const arrow_up = 15 | IconData(61700, fontFamily: _family, fontPackage: _package); 16 | static const bell = 17 | IconData(61701, fontFamily: _family, fontPackage: _package); 18 | static const calendar = 19 | IconData(61702, fontFamily: _family, fontPackage: _package); 20 | static const camera = 21 | IconData(61703, fontFamily: _family, fontPackage: _package); 22 | static const cart = 23 | IconData(61704, fontFamily: _family, fontPackage: _package); 24 | static const chart = 25 | IconData(61705, fontFamily: _family, fontPackage: _package); 26 | static const check = 27 | IconData(61706, fontFamily: _family, fontPackage: _package); 28 | static const chevron_down = 29 | IconData(61707, fontFamily: _family, fontPackage: _package); 30 | static const chevron_left = 31 | IconData(61708, fontFamily: _family, fontPackage: _package); 32 | static const chevron_right = 33 | IconData(61709, fontFamily: _family, fontPackage: _package); 34 | static const chevron_up = 35 | IconData(61710, fontFamily: _family, fontPackage: _package); 36 | static const clock = 37 | IconData(61711, fontFamily: _family, fontPackage: _package); 38 | static const close = 39 | IconData(61712, fontFamily: _family, fontPackage: _package); 40 | static const close_o = 41 | IconData(61713, fontFamily: _family, fontPackage: _package); 42 | static const comment = 43 | IconData(61714, fontFamily: _family, fontPackage: _package); 44 | static const credit_card = 45 | IconData(61715, fontFamily: _family, fontPackage: _package); 46 | static const envelope = 47 | IconData(61716, fontFamily: _family, fontPackage: _package); 48 | static const exclamation = 49 | IconData(61717, fontFamily: _family, fontPackage: _package); 50 | static const external_link = 51 | IconData(61718, fontFamily: _family, fontPackage: _package); 52 | static const eye = 53 | IconData(61719, fontFamily: _family, fontPackage: _package); 54 | static const gear = 55 | IconData(61720, fontFamily: _family, fontPackage: _package); 56 | static const heart = 57 | IconData(61721, fontFamily: _family, fontPackage: _package); 58 | static const image = 59 | IconData(61722, fontFamily: _family, fontPackage: _package); 60 | static const like = 61 | IconData(61723, fontFamily: _family, fontPackage: _package); 62 | static const link = 63 | IconData(61724, fontFamily: _family, fontPackage: _package); 64 | static const location = 65 | IconData(61725, fontFamily: _family, fontPackage: _package); 66 | static const lock = 67 | IconData(61726, fontFamily: _family, fontPackage: _package); 68 | static const minus = 69 | IconData(61727, fontFamily: _family, fontPackage: _package); 70 | static const navicon = 71 | IconData(61728, fontFamily: _family, fontPackage: _package); 72 | static const paperclip = 73 | IconData(61729, fontFamily: _family, fontPackage: _package); 74 | static const pencil = 75 | IconData(61730, fontFamily: _family, fontPackage: _package); 76 | static const play = 77 | IconData(61731, fontFamily: _family, fontPackage: _package); 78 | static const plus = 79 | IconData(61732, fontFamily: _family, fontPackage: _package); 80 | static const pointer = 81 | IconData(61733, fontFamily: _family, fontPackage: _package); 82 | static const question = 83 | IconData(61734, fontFamily: _family, fontPackage: _package); 84 | static const redo = 85 | IconData(61735, fontFamily: _family, fontPackage: _package); 86 | static const refresh = 87 | IconData(61736, fontFamily: _family, fontPackage: _package); 88 | static const retweet = 89 | IconData(61737, fontFamily: _family, fontPackage: _package); 90 | static const sc_facebook = 91 | IconData(61738, fontFamily: _family, fontPackage: _package); 92 | static const sc_github = 93 | IconData(61739, fontFamily: _family, fontPackage: _package); 94 | static const sc_google_plus = 95 | IconData(61740, fontFamily: _family, fontPackage: _package); 96 | static const sc_instagram = 97 | IconData(61741, fontFamily: _family, fontPackage: _package); 98 | static const sc_linkedin = 99 | IconData(61742, fontFamily: _family, fontPackage: _package); 100 | static const sc_odnoklassniki = 101 | IconData(61743, fontFamily: _family, fontPackage: _package); 102 | static const sc_pinterest = 103 | IconData(61744, fontFamily: _family, fontPackage: _package); 104 | static const sc_skype = 105 | IconData(61745, fontFamily: _family, fontPackage: _package); 106 | static const sc_soundcloud = 107 | IconData(61746, fontFamily: _family, fontPackage: _package); 108 | static const sc_telegram = 109 | IconData(61747, fontFamily: _family, fontPackage: _package); 110 | static const sc_tumblr = 111 | IconData(61748, fontFamily: _family, fontPackage: _package); 112 | static const sc_twitter = 113 | IconData(61749, fontFamily: _family, fontPackage: _package); 114 | static const sc_vimeo = 115 | IconData(61750, fontFamily: _family, fontPackage: _package); 116 | static const sc_vk = 117 | IconData(61751, fontFamily: _family, fontPackage: _package); 118 | static const sc_youtube = 119 | IconData(61752, fontFamily: _family, fontPackage: _package); 120 | static const search = 121 | IconData(61753, fontFamily: _family, fontPackage: _package); 122 | static const share_apple = 123 | IconData(61754, fontFamily: _family, fontPackage: _package); 124 | static const share_google = 125 | IconData(61755, fontFamily: _family, fontPackage: _package); 126 | static const spinner = 127 | IconData(61756, fontFamily: _family, fontPackage: _package); 128 | static const spinner_2 = 129 | IconData(61757, fontFamily: _family, fontPackage: _package); 130 | static const spinner_3 = 131 | IconData(61758, fontFamily: _family, fontPackage: _package); 132 | static const star = 133 | IconData(61759, fontFamily: _family, fontPackage: _package); 134 | static const tag = 135 | IconData(61760, fontFamily: _family, fontPackage: _package); 136 | static const trash = 137 | IconData(61761, fontFamily: _family, fontPackage: _package); 138 | static const trophy = 139 | IconData(61762, fontFamily: _family, fontPackage: _package); 140 | static const undo = 141 | IconData(61763, fontFamily: _family, fontPackage: _package); 142 | static const unlock = 143 | IconData(61764, fontFamily: _family, fontPackage: _package); 144 | static const user = 145 | IconData(61765, fontFamily: _family, fontPackage: _package); 146 | } 147 | -------------------------------------------------------------------------------- /lib/src/font_awesome5_regular.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class FontAwesome5Regular { 4 | static const _family = 'FontAwesome5_Regular'; 5 | static const _package = 'flutter_vector_icons'; 6 | static const address_book = 7 | IconData(62137, fontFamily: _family, fontPackage: _package); 8 | static const address_card = 9 | IconData(62139, fontFamily: _family, fontPackage: _package); 10 | static const angry = 11 | IconData(62806, fontFamily: _family, fontPackage: _package); 12 | static const arrow_alt_circle_down = 13 | IconData(62296, fontFamily: _family, fontPackage: _package); 14 | static const arrow_alt_circle_left = 15 | IconData(62297, fontFamily: _family, fontPackage: _package); 16 | static const arrow_alt_circle_right = 17 | IconData(62298, fontFamily: _family, fontPackage: _package); 18 | static const arrow_alt_circle_up = 19 | IconData(62299, fontFamily: _family, fontPackage: _package); 20 | static const bell_slash = 21 | IconData(61942, fontFamily: _family, fontPackage: _package); 22 | static const bell = 23 | IconData(61683, fontFamily: _family, fontPackage: _package); 24 | static const bookmark = 25 | IconData(61486, fontFamily: _family, fontPackage: _package); 26 | static const building = 27 | IconData(61869, fontFamily: _family, fontPackage: _package); 28 | static const calendar_alt = 29 | IconData(61555, fontFamily: _family, fontPackage: _package); 30 | static const calendar_check = 31 | IconData(62068, fontFamily: _family, fontPackage: _package); 32 | static const calendar_minus = 33 | IconData(62066, fontFamily: _family, fontPackage: _package); 34 | static const calendar_plus = 35 | IconData(62065, fontFamily: _family, fontPackage: _package); 36 | static const calendar_times = 37 | IconData(62067, fontFamily: _family, fontPackage: _package); 38 | static const calendar = 39 | IconData(61747, fontFamily: _family, fontPackage: _package); 40 | static const caret_square_down = 41 | IconData(61776, fontFamily: _family, fontPackage: _package); 42 | static const caret_square_left = 43 | IconData(61841, fontFamily: _family, fontPackage: _package); 44 | static const caret_square_right = 45 | IconData(61778, fontFamily: _family, fontPackage: _package); 46 | static const caret_square_up = 47 | IconData(61777, fontFamily: _family, fontPackage: _package); 48 | static const chart_bar = 49 | IconData(61568, fontFamily: _family, fontPackage: _package); 50 | static const check_circle = 51 | IconData(61528, fontFamily: _family, fontPackage: _package); 52 | static const check_square = 53 | IconData(61770, fontFamily: _family, fontPackage: _package); 54 | static const circle = 55 | IconData(61713, fontFamily: _family, fontPackage: _package); 56 | static const clipboard = 57 | IconData(62248, fontFamily: _family, fontPackage: _package); 58 | static const clock = 59 | IconData(61463, fontFamily: _family, fontPackage: _package); 60 | static const clone = 61 | IconData(62029, fontFamily: _family, fontPackage: _package); 62 | static const closed_captioning = 63 | IconData(61962, fontFamily: _family, fontPackage: _package); 64 | static const comment_alt = 65 | IconData(62074, fontFamily: _family, fontPackage: _package); 66 | static const comment_dots = 67 | IconData(62637, fontFamily: _family, fontPackage: _package); 68 | static const comment = 69 | IconData(61557, fontFamily: _family, fontPackage: _package); 70 | static const comments = 71 | IconData(61574, fontFamily: _family, fontPackage: _package); 72 | static const compass = 73 | IconData(61774, fontFamily: _family, fontPackage: _package); 74 | static const copy = 75 | IconData(61637, fontFamily: _family, fontPackage: _package); 76 | static const copyright = 77 | IconData(61945, fontFamily: _family, fontPackage: _package); 78 | static const credit_card = 79 | IconData(61597, fontFamily: _family, fontPackage: _package); 80 | static const dizzy = 81 | IconData(62823, fontFamily: _family, fontPackage: _package); 82 | static const dot_circle = 83 | IconData(61842, fontFamily: _family, fontPackage: _package); 84 | static const edit = 85 | IconData(61508, fontFamily: _family, fontPackage: _package); 86 | static const envelope_open = 87 | IconData(62134, fontFamily: _family, fontPackage: _package); 88 | static const envelope = 89 | IconData(61664, fontFamily: _family, fontPackage: _package); 90 | static const eye_slash = 91 | IconData(61552, fontFamily: _family, fontPackage: _package); 92 | static const eye = 93 | IconData(61550, fontFamily: _family, fontPackage: _package); 94 | static const file_alt = 95 | IconData(61788, fontFamily: _family, fontPackage: _package); 96 | static const file_archive = 97 | IconData(61894, fontFamily: _family, fontPackage: _package); 98 | static const file_audio = 99 | IconData(61895, fontFamily: _family, fontPackage: _package); 100 | static const file_code = 101 | IconData(61897, fontFamily: _family, fontPackage: _package); 102 | static const file_excel = 103 | IconData(61891, fontFamily: _family, fontPackage: _package); 104 | static const file_image = 105 | IconData(61893, fontFamily: _family, fontPackage: _package); 106 | static const file_pdf = 107 | IconData(61889, fontFamily: _family, fontPackage: _package); 108 | static const file_powerpoint = 109 | IconData(61892, fontFamily: _family, fontPackage: _package); 110 | static const file_video = 111 | IconData(61896, fontFamily: _family, fontPackage: _package); 112 | static const file_word = 113 | IconData(61890, fontFamily: _family, fontPackage: _package); 114 | static const file = 115 | IconData(61787, fontFamily: _family, fontPackage: _package); 116 | static const flag = 117 | IconData(61476, fontFamily: _family, fontPackage: _package); 118 | static const flushed = 119 | IconData(62841, fontFamily: _family, fontPackage: _package); 120 | static const folder_open = 121 | IconData(61564, fontFamily: _family, fontPackage: _package); 122 | static const folder = 123 | IconData(61563, fontFamily: _family, fontPackage: _package); 124 | static const font_awesome_logo_full = 125 | IconData(62694, fontFamily: _family, fontPackage: _package); 126 | static const frown_open = 127 | IconData(62842, fontFamily: _family, fontPackage: _package); 128 | static const frown = 129 | IconData(61721, fontFamily: _family, fontPackage: _package); 130 | static const futbol = 131 | IconData(61923, fontFamily: _family, fontPackage: _package); 132 | static const gem = 133 | IconData(62373, fontFamily: _family, fontPackage: _package); 134 | static const grimace = 135 | IconData(62847, fontFamily: _family, fontPackage: _package); 136 | static const grin_alt = 137 | IconData(62849, fontFamily: _family, fontPackage: _package); 138 | static const grin_beam_sweat = 139 | IconData(62851, fontFamily: _family, fontPackage: _package); 140 | static const grin_beam = 141 | IconData(62850, fontFamily: _family, fontPackage: _package); 142 | static const grin_hearts = 143 | IconData(62852, fontFamily: _family, fontPackage: _package); 144 | static const grin_squint_tears = 145 | IconData(62854, fontFamily: _family, fontPackage: _package); 146 | static const grin_squint = 147 | IconData(62853, fontFamily: _family, fontPackage: _package); 148 | static const grin_stars = 149 | IconData(62855, fontFamily: _family, fontPackage: _package); 150 | static const grin_tears = 151 | IconData(62856, fontFamily: _family, fontPackage: _package); 152 | static const grin_tongue_squint = 153 | IconData(62858, fontFamily: _family, fontPackage: _package); 154 | static const grin_tongue_wink = 155 | IconData(62859, fontFamily: _family, fontPackage: _package); 156 | static const grin_tongue = 157 | IconData(62857, fontFamily: _family, fontPackage: _package); 158 | static const grin_wink = 159 | IconData(62860, fontFamily: _family, fontPackage: _package); 160 | static const grin = 161 | IconData(62848, fontFamily: _family, fontPackage: _package); 162 | static const hand_lizard = 163 | IconData(62040, fontFamily: _family, fontPackage: _package); 164 | static const hand_paper = 165 | IconData(62038, fontFamily: _family, fontPackage: _package); 166 | static const hand_peace = 167 | IconData(62043, fontFamily: _family, fontPackage: _package); 168 | static const hand_point_down = 169 | IconData(61607, fontFamily: _family, fontPackage: _package); 170 | static const hand_point_left = 171 | IconData(61605, fontFamily: _family, fontPackage: _package); 172 | static const hand_point_right = 173 | IconData(61604, fontFamily: _family, fontPackage: _package); 174 | static const hand_point_up = 175 | IconData(61606, fontFamily: _family, fontPackage: _package); 176 | static const hand_pointer = 177 | IconData(62042, fontFamily: _family, fontPackage: _package); 178 | static const hand_rock = 179 | IconData(62037, fontFamily: _family, fontPackage: _package); 180 | static const hand_scissors = 181 | IconData(62039, fontFamily: _family, fontPackage: _package); 182 | static const hand_spock = 183 | IconData(62041, fontFamily: _family, fontPackage: _package); 184 | static const handshake = 185 | IconData(62133, fontFamily: _family, fontPackage: _package); 186 | static const hdd = 187 | IconData(61600, fontFamily: _family, fontPackage: _package); 188 | static const heart = 189 | IconData(61444, fontFamily: _family, fontPackage: _package); 190 | static const hospital = 191 | IconData(61688, fontFamily: _family, fontPackage: _package); 192 | static const hourglass = 193 | IconData(62036, fontFamily: _family, fontPackage: _package); 194 | static const id_badge = 195 | IconData(62145, fontFamily: _family, fontPackage: _package); 196 | static const id_card = 197 | IconData(62146, fontFamily: _family, fontPackage: _package); 198 | static const image = 199 | IconData(61502, fontFamily: _family, fontPackage: _package); 200 | static const images = 201 | IconData(62210, fontFamily: _family, fontPackage: _package); 202 | static const keyboard = 203 | IconData(61724, fontFamily: _family, fontPackage: _package); 204 | static const kiss_beam = 205 | IconData(62871, fontFamily: _family, fontPackage: _package); 206 | static const kiss_wink_heart = 207 | IconData(62872, fontFamily: _family, fontPackage: _package); 208 | static const kiss = 209 | IconData(62870, fontFamily: _family, fontPackage: _package); 210 | static const laugh_beam = 211 | IconData(62874, fontFamily: _family, fontPackage: _package); 212 | static const laugh_squint = 213 | IconData(62875, fontFamily: _family, fontPackage: _package); 214 | static const laugh_wink = 215 | IconData(62876, fontFamily: _family, fontPackage: _package); 216 | static const laugh = 217 | IconData(62873, fontFamily: _family, fontPackage: _package); 218 | static const lemon = 219 | IconData(61588, fontFamily: _family, fontPackage: _package); 220 | static const life_ring = 221 | IconData(61901, fontFamily: _family, fontPackage: _package); 222 | static const lightbulb = 223 | IconData(61675, fontFamily: _family, fontPackage: _package); 224 | static const list_alt = 225 | IconData(61474, fontFamily: _family, fontPackage: _package); 226 | static const map = 227 | IconData(62073, fontFamily: _family, fontPackage: _package); 228 | static const meh_blank = 229 | IconData(62884, fontFamily: _family, fontPackage: _package); 230 | static const meh_rolling_eyes = 231 | IconData(62885, fontFamily: _family, fontPackage: _package); 232 | static const meh = 233 | IconData(61722, fontFamily: _family, fontPackage: _package); 234 | static const minus_square = 235 | IconData(61766, fontFamily: _family, fontPackage: _package); 236 | static const money_bill_alt = 237 | IconData(62417, fontFamily: _family, fontPackage: _package); 238 | static const moon = 239 | IconData(61830, fontFamily: _family, fontPackage: _package); 240 | static const newspaper = 241 | IconData(61930, fontFamily: _family, fontPackage: _package); 242 | static const object_group = 243 | IconData(62023, fontFamily: _family, fontPackage: _package); 244 | static const object_ungroup = 245 | IconData(62024, fontFamily: _family, fontPackage: _package); 246 | static const paper_plane = 247 | IconData(61912, fontFamily: _family, fontPackage: _package); 248 | static const pause_circle = 249 | IconData(62091, fontFamily: _family, fontPackage: _package); 250 | static const play_circle = 251 | IconData(61764, fontFamily: _family, fontPackage: _package); 252 | static const plus_square = 253 | IconData(61694, fontFamily: _family, fontPackage: _package); 254 | static const question_circle = 255 | IconData(61529, fontFamily: _family, fontPackage: _package); 256 | static const registered = 257 | IconData(62045, fontFamily: _family, fontPackage: _package); 258 | static const sad_cry = 259 | IconData(62899, fontFamily: _family, fontPackage: _package); 260 | static const sad_tear = 261 | IconData(62900, fontFamily: _family, fontPackage: _package); 262 | static const save = 263 | IconData(61639, fontFamily: _family, fontPackage: _package); 264 | static const share_square = 265 | IconData(61773, fontFamily: _family, fontPackage: _package); 266 | static const smile_beam = 267 | IconData(62904, fontFamily: _family, fontPackage: _package); 268 | static const smile_wink = 269 | IconData(62682, fontFamily: _family, fontPackage: _package); 270 | static const smile = 271 | IconData(61720, fontFamily: _family, fontPackage: _package); 272 | static const snowflake = 273 | IconData(62172, fontFamily: _family, fontPackage: _package); 274 | static const square = 275 | IconData(61640, fontFamily: _family, fontPackage: _package); 276 | static const star_half = 277 | IconData(61577, fontFamily: _family, fontPackage: _package); 278 | static const star = 279 | IconData(61445, fontFamily: _family, fontPackage: _package); 280 | static const sticky_note = 281 | IconData(62025, fontFamily: _family, fontPackage: _package); 282 | static const stop_circle = 283 | IconData(62093, fontFamily: _family, fontPackage: _package); 284 | static const sun = 285 | IconData(61829, fontFamily: _family, fontPackage: _package); 286 | static const surprise = 287 | IconData(62914, fontFamily: _family, fontPackage: _package); 288 | static const thumbs_down = 289 | IconData(61797, fontFamily: _family, fontPackage: _package); 290 | static const thumbs_up = 291 | IconData(61796, fontFamily: _family, fontPackage: _package); 292 | static const times_circle = 293 | IconData(61527, fontFamily: _family, fontPackage: _package); 294 | static const tired = 295 | IconData(62920, fontFamily: _family, fontPackage: _package); 296 | static const trash_alt = 297 | IconData(62189, fontFamily: _family, fontPackage: _package); 298 | static const user_circle = 299 | IconData(62141, fontFamily: _family, fontPackage: _package); 300 | static const user = 301 | IconData(61447, fontFamily: _family, fontPackage: _package); 302 | static const window_close = 303 | IconData(62480, fontFamily: _family, fontPackage: _package); 304 | static const window_maximize = 305 | IconData(62160, fontFamily: _family, fontPackage: _package); 306 | static const window_minimize = 307 | IconData(62161, fontFamily: _family, fontPackage: _package); 308 | static const window_restore = 309 | IconData(62162, fontFamily: _family, fontPackage: _package); 310 | } 311 | -------------------------------------------------------------------------------- /lib/src/simple_line_icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class SimpleLineIcons { 4 | static const _family = 'SimpleLineIcons'; 5 | static const _package = 'flutter_vector_icons'; 6 | static const user = 7 | IconData(57349, fontFamily: _family, fontPackage: _package); 8 | static const people = 9 | IconData(57345, fontFamily: _family, fontPackage: _package); 10 | static const user_female = 11 | IconData(57344, fontFamily: _family, fontPackage: _package); 12 | static const user_follow = 13 | IconData(57346, fontFamily: _family, fontPackage: _package); 14 | static const user_following = 15 | IconData(57347, fontFamily: _family, fontPackage: _package); 16 | static const user_unfollow = 17 | IconData(57348, fontFamily: _family, fontPackage: _package); 18 | static const login = 19 | IconData(57446, fontFamily: _family, fontPackage: _package); 20 | static const logout = 21 | IconData(57445, fontFamily: _family, fontPackage: _package); 22 | static const emotsmile = 23 | IconData(57377, fontFamily: _family, fontPackage: _package); 24 | static const phone = 25 | IconData(58880, fontFamily: _family, fontPackage: _package); 26 | static const call_end = 27 | IconData(57416, fontFamily: _family, fontPackage: _package); 28 | static const call_in = 29 | IconData(57415, fontFamily: _family, fontPackage: _package); 30 | static const call_out = 31 | IconData(57414, fontFamily: _family, fontPackage: _package); 32 | static const map = 33 | IconData(57395, fontFamily: _family, fontPackage: _package); 34 | static const location_pin = 35 | IconData(57494, fontFamily: _family, fontPackage: _package); 36 | static const direction = 37 | IconData(57410, fontFamily: _family, fontPackage: _package); 38 | static const directions = 39 | IconData(57409, fontFamily: _family, fontPackage: _package); 40 | static const compass = 41 | IconData(57413, fontFamily: _family, fontPackage: _package); 42 | static const layers = 43 | IconData(57396, fontFamily: _family, fontPackage: _package); 44 | static const menu = 45 | IconData(58881, fontFamily: _family, fontPackage: _package); 46 | static const list = 47 | IconData(57447, fontFamily: _family, fontPackage: _package); 48 | static const options_vertical = 49 | IconData(58882, fontFamily: _family, fontPackage: _package); 50 | static const options = 51 | IconData(58883, fontFamily: _family, fontPackage: _package); 52 | static const arrow_down = 53 | IconData(58884, fontFamily: _family, fontPackage: _package); 54 | static const arrow_left = 55 | IconData(58885, fontFamily: _family, fontPackage: _package); 56 | static const arrow_right = 57 | IconData(58886, fontFamily: _family, fontPackage: _package); 58 | static const arrow_up = 59 | IconData(58887, fontFamily: _family, fontPackage: _package); 60 | static const arrow_up_circle = 61 | IconData(57464, fontFamily: _family, fontPackage: _package); 62 | static const arrow_left_circle = 63 | IconData(57466, fontFamily: _family, fontPackage: _package); 64 | static const arrow_right_circle = 65 | IconData(57465, fontFamily: _family, fontPackage: _package); 66 | static const arrow_down_circle = 67 | IconData(57467, fontFamily: _family, fontPackage: _package); 68 | static const check = 69 | IconData(57472, fontFamily: _family, fontPackage: _package); 70 | static const clock = 71 | IconData(57473, fontFamily: _family, fontPackage: _package); 72 | static const plus = 73 | IconData(57493, fontFamily: _family, fontPackage: _package); 74 | static const minus = 75 | IconData(58901, fontFamily: _family, fontPackage: _package); 76 | static const close = 77 | IconData(57474, fontFamily: _family, fontPackage: _package); 78 | static const event = 79 | IconData(58905, fontFamily: _family, fontPackage: _package); 80 | static const exclamation = 81 | IconData(58903, fontFamily: _family, fontPackage: _package); 82 | static const organization = 83 | IconData(58902, fontFamily: _family, fontPackage: _package); 84 | static const trophy = 85 | IconData(57350, fontFamily: _family, fontPackage: _package); 86 | static const screen_smartphone = 87 | IconData(57360, fontFamily: _family, fontPackage: _package); 88 | static const screen_desktop = 89 | IconData(57361, fontFamily: _family, fontPackage: _package); 90 | static const plane = 91 | IconData(57362, fontFamily: _family, fontPackage: _package); 92 | static const notebook = 93 | IconData(57363, fontFamily: _family, fontPackage: _package); 94 | static const mustache = 95 | IconData(57364, fontFamily: _family, fontPackage: _package); 96 | static const mouse = 97 | IconData(57365, fontFamily: _family, fontPackage: _package); 98 | static const magnet = 99 | IconData(57366, fontFamily: _family, fontPackage: _package); 100 | static const energy = 101 | IconData(57376, fontFamily: _family, fontPackage: _package); 102 | static const disc = 103 | IconData(57378, fontFamily: _family, fontPackage: _package); 104 | static const cursor = 105 | IconData(57454, fontFamily: _family, fontPackage: _package); 106 | static const cursor_move = 107 | IconData(57379, fontFamily: _family, fontPackage: _package); 108 | static const crop = 109 | IconData(57380, fontFamily: _family, fontPackage: _package); 110 | static const chemistry = 111 | IconData(57382, fontFamily: _family, fontPackage: _package); 112 | static const speedometer = 113 | IconData(57351, fontFamily: _family, fontPackage: _package); 114 | static const shield = 115 | IconData(57358, fontFamily: _family, fontPackage: _package); 116 | static const screen_tablet = 117 | IconData(57359, fontFamily: _family, fontPackage: _package); 118 | static const magic_wand = 119 | IconData(57367, fontFamily: _family, fontPackage: _package); 120 | static const hourglass = 121 | IconData(57368, fontFamily: _family, fontPackage: _package); 122 | static const graduation = 123 | IconData(57369, fontFamily: _family, fontPackage: _package); 124 | static const ghost = 125 | IconData(57370, fontFamily: _family, fontPackage: _package); 126 | static const game_controller = 127 | IconData(57371, fontFamily: _family, fontPackage: _package); 128 | static const fire = 129 | IconData(57372, fontFamily: _family, fontPackage: _package); 130 | static const eyeglass = 131 | IconData(57373, fontFamily: _family, fontPackage: _package); 132 | static const envelope_open = 133 | IconData(57374, fontFamily: _family, fontPackage: _package); 134 | static const envelope_letter = 135 | IconData(57375, fontFamily: _family, fontPackage: _package); 136 | static const bell = 137 | IconData(57383, fontFamily: _family, fontPackage: _package); 138 | static const badge = 139 | IconData(57384, fontFamily: _family, fontPackage: _package); 140 | static const anchor = 141 | IconData(57385, fontFamily: _family, fontPackage: _package); 142 | static const wallet = 143 | IconData(57386, fontFamily: _family, fontPackage: _package); 144 | static const vector = 145 | IconData(57387, fontFamily: _family, fontPackage: _package); 146 | static const speech = 147 | IconData(57388, fontFamily: _family, fontPackage: _package); 148 | static const puzzle = 149 | IconData(57389, fontFamily: _family, fontPackage: _package); 150 | static const printer = 151 | IconData(57390, fontFamily: _family, fontPackage: _package); 152 | static const present = 153 | IconData(57391, fontFamily: _family, fontPackage: _package); 154 | static const playlist = 155 | IconData(57392, fontFamily: _family, fontPackage: _package); 156 | static const pin = 157 | IconData(57393, fontFamily: _family, fontPackage: _package); 158 | static const picture = 159 | IconData(57394, fontFamily: _family, fontPackage: _package); 160 | static const handbag = 161 | IconData(57397, fontFamily: _family, fontPackage: _package); 162 | static const globe_alt = 163 | IconData(57398, fontFamily: _family, fontPackage: _package); 164 | static const globe = 165 | IconData(57399, fontFamily: _family, fontPackage: _package); 166 | static const folder_alt = 167 | IconData(57401, fontFamily: _family, fontPackage: _package); 168 | static const folder = 169 | IconData(57481, fontFamily: _family, fontPackage: _package); 170 | static const film = 171 | IconData(57402, fontFamily: _family, fontPackage: _package); 172 | static const feed = 173 | IconData(57403, fontFamily: _family, fontPackage: _package); 174 | static const drop = 175 | IconData(57406, fontFamily: _family, fontPackage: _package); 176 | static const drawer = 177 | IconData(57407, fontFamily: _family, fontPackage: _package); 178 | static const docs = 179 | IconData(57408, fontFamily: _family, fontPackage: _package); 180 | static const doc = 181 | IconData(57477, fontFamily: _family, fontPackage: _package); 182 | static const diamond = 183 | IconData(57411, fontFamily: _family, fontPackage: _package); 184 | static const cup = 185 | IconData(57412, fontFamily: _family, fontPackage: _package); 186 | static const calculator = 187 | IconData(57417, fontFamily: _family, fontPackage: _package); 188 | static const bubbles = 189 | IconData(57418, fontFamily: _family, fontPackage: _package); 190 | static const briefcase = 191 | IconData(57419, fontFamily: _family, fontPackage: _package); 192 | static const book_open = 193 | IconData(57420, fontFamily: _family, fontPackage: _package); 194 | static const basket_loaded = 195 | IconData(57421, fontFamily: _family, fontPackage: _package); 196 | static const basket = 197 | IconData(57422, fontFamily: _family, fontPackage: _package); 198 | static const bag = 199 | IconData(57423, fontFamily: _family, fontPackage: _package); 200 | static const action_undo = 201 | IconData(57424, fontFamily: _family, fontPackage: _package); 202 | static const action_redo = 203 | IconData(57425, fontFamily: _family, fontPackage: _package); 204 | static const wrench = 205 | IconData(57426, fontFamily: _family, fontPackage: _package); 206 | static const umbrella = 207 | IconData(57427, fontFamily: _family, fontPackage: _package); 208 | static const trash = 209 | IconData(57428, fontFamily: _family, fontPackage: _package); 210 | static const tag = 211 | IconData(57429, fontFamily: _family, fontPackage: _package); 212 | static const support = 213 | IconData(57430, fontFamily: _family, fontPackage: _package); 214 | static const frame = 215 | IconData(57400, fontFamily: _family, fontPackage: _package); 216 | static const size_fullscreen = 217 | IconData(57431, fontFamily: _family, fontPackage: _package); 218 | static const size_actual = 219 | IconData(57432, fontFamily: _family, fontPackage: _package); 220 | static const shuffle = 221 | IconData(57433, fontFamily: _family, fontPackage: _package); 222 | static const share_alt = 223 | IconData(57434, fontFamily: _family, fontPackage: _package); 224 | static const share = 225 | IconData(57435, fontFamily: _family, fontPackage: _package); 226 | static const rocket = 227 | IconData(57436, fontFamily: _family, fontPackage: _package); 228 | static const question = 229 | IconData(57437, fontFamily: _family, fontPackage: _package); 230 | static const pie_chart = 231 | IconData(57438, fontFamily: _family, fontPackage: _package); 232 | static const pencil = 233 | IconData(57439, fontFamily: _family, fontPackage: _package); 234 | static const note = 235 | IconData(57440, fontFamily: _family, fontPackage: _package); 236 | static const loop = 237 | IconData(57444, fontFamily: _family, fontPackage: _package); 238 | static const home = 239 | IconData(57449, fontFamily: _family, fontPackage: _package); 240 | static const grid = 241 | IconData(57450, fontFamily: _family, fontPackage: _package); 242 | static const graph = 243 | IconData(57451, fontFamily: _family, fontPackage: _package); 244 | static const microphone = 245 | IconData(57443, fontFamily: _family, fontPackage: _package); 246 | static const music_tone_alt = 247 | IconData(57441, fontFamily: _family, fontPackage: _package); 248 | static const music_tone = 249 | IconData(57442, fontFamily: _family, fontPackage: _package); 250 | static const earphones_alt = 251 | IconData(57404, fontFamily: _family, fontPackage: _package); 252 | static const earphones = 253 | IconData(57405, fontFamily: _family, fontPackage: _package); 254 | static const equalizer = 255 | IconData(57452, fontFamily: _family, fontPackage: _package); 256 | static const like = 257 | IconData(57448, fontFamily: _family, fontPackage: _package); 258 | static const dislike = 259 | IconData(57453, fontFamily: _family, fontPackage: _package); 260 | static const control_start = 261 | IconData(57455, fontFamily: _family, fontPackage: _package); 262 | static const control_rewind = 263 | IconData(57456, fontFamily: _family, fontPackage: _package); 264 | static const control_play = 265 | IconData(57457, fontFamily: _family, fontPackage: _package); 266 | static const control_pause = 267 | IconData(57458, fontFamily: _family, fontPackage: _package); 268 | static const control_forward = 269 | IconData(57459, fontFamily: _family, fontPackage: _package); 270 | static const control_end = 271 | IconData(57460, fontFamily: _family, fontPackage: _package); 272 | static const volume_1 = 273 | IconData(57503, fontFamily: _family, fontPackage: _package); 274 | static const volume_2 = 275 | IconData(57504, fontFamily: _family, fontPackage: _package); 276 | static const volume_off = 277 | IconData(57505, fontFamily: _family, fontPackage: _package); 278 | static const calendar = 279 | IconData(57461, fontFamily: _family, fontPackage: _package); 280 | static const bulb = 281 | IconData(57462, fontFamily: _family, fontPackage: _package); 282 | static const chart = 283 | IconData(57463, fontFamily: _family, fontPackage: _package); 284 | static const ban = 285 | IconData(57468, fontFamily: _family, fontPackage: _package); 286 | static const bubble = 287 | IconData(57469, fontFamily: _family, fontPackage: _package); 288 | static const camrecorder = 289 | IconData(57470, fontFamily: _family, fontPackage: _package); 290 | static const camera = 291 | IconData(57471, fontFamily: _family, fontPackage: _package); 292 | static const cloud_download = 293 | IconData(57475, fontFamily: _family, fontPackage: _package); 294 | static const cloud_upload = 295 | IconData(57476, fontFamily: _family, fontPackage: _package); 296 | static const envelope = 297 | IconData(57478, fontFamily: _family, fontPackage: _package); 298 | static const eye = 299 | IconData(57479, fontFamily: _family, fontPackage: _package); 300 | static const flag = 301 | IconData(57480, fontFamily: _family, fontPackage: _package); 302 | static const heart = 303 | IconData(57482, fontFamily: _family, fontPackage: _package); 304 | static const info = 305 | IconData(57483, fontFamily: _family, fontPackage: _package); 306 | static const key = 307 | IconData(57484, fontFamily: _family, fontPackage: _package); 308 | static const link = 309 | IconData(57485, fontFamily: _family, fontPackage: _package); 310 | static const lock = 311 | IconData(57486, fontFamily: _family, fontPackage: _package); 312 | static const lock_open = 313 | IconData(57487, fontFamily: _family, fontPackage: _package); 314 | static const magnifier = 315 | IconData(57488, fontFamily: _family, fontPackage: _package); 316 | static const magnifier_add = 317 | IconData(57489, fontFamily: _family, fontPackage: _package); 318 | static const magnifier_remove = 319 | IconData(57490, fontFamily: _family, fontPackage: _package); 320 | static const paper_clip = 321 | IconData(57491, fontFamily: _family, fontPackage: _package); 322 | static const paper_plane = 323 | IconData(57492, fontFamily: _family, fontPackage: _package); 324 | static const power = 325 | IconData(57495, fontFamily: _family, fontPackage: _package); 326 | static const refresh = 327 | IconData(57496, fontFamily: _family, fontPackage: _package); 328 | static const reload = 329 | IconData(57497, fontFamily: _family, fontPackage: _package); 330 | static const settings = 331 | IconData(57498, fontFamily: _family, fontPackage: _package); 332 | static const star = 333 | IconData(57499, fontFamily: _family, fontPackage: _package); 334 | static const symbol_female = 335 | IconData(57500, fontFamily: _family, fontPackage: _package); 336 | static const symbol_male = 337 | IconData(57501, fontFamily: _family, fontPackage: _package); 338 | static const target = 339 | IconData(57502, fontFamily: _family, fontPackage: _package); 340 | static const credit_card = 341 | IconData(57381, fontFamily: _family, fontPackage: _package); 342 | static const paypal = 343 | IconData(58888, fontFamily: _family, fontPackage: _package); 344 | static const social_tumblr = 345 | IconData(57354, fontFamily: _family, fontPackage: _package); 346 | static const social_twitter = 347 | IconData(57353, fontFamily: _family, fontPackage: _package); 348 | static const social_facebook = 349 | IconData(57355, fontFamily: _family, fontPackage: _package); 350 | static const social_instagram = 351 | IconData(58889, fontFamily: _family, fontPackage: _package); 352 | static const social_linkedin = 353 | IconData(58890, fontFamily: _family, fontPackage: _package); 354 | static const social_pinterest = 355 | IconData(58891, fontFamily: _family, fontPackage: _package); 356 | static const social_github = 357 | IconData(58892, fontFamily: _family, fontPackage: _package); 358 | static const social_google = 359 | IconData(58893, fontFamily: _family, fontPackage: _package); 360 | static const social_reddit = 361 | IconData(58894, fontFamily: _family, fontPackage: _package); 362 | static const social_skype = 363 | IconData(58895, fontFamily: _family, fontPackage: _package); 364 | static const social_dribbble = 365 | IconData(57357, fontFamily: _family, fontPackage: _package); 366 | static const social_behance = 367 | IconData(58896, fontFamily: _family, fontPackage: _package); 368 | static const social_foursqare = 369 | IconData(58897, fontFamily: _family, fontPackage: _package); 370 | static const social_soundcloud = 371 | IconData(58898, fontFamily: _family, fontPackage: _package); 372 | static const social_spotify = 373 | IconData(58899, fontFamily: _family, fontPackage: _package); 374 | static const social_stumbleupon = 375 | IconData(58900, fontFamily: _family, fontPackage: _package); 376 | static const social_youtube = 377 | IconData(57352, fontFamily: _family, fontPackage: _package); 378 | static const social_dropbox = 379 | IconData(57356, fontFamily: _family, fontPackage: _package); 380 | static const social_vkontakte = 381 | IconData(58904, fontFamily: _family, fontPackage: _package); 382 | static const social_steam = 383 | IconData(58912, fontFamily: _family, fontPackage: _package); 384 | } 385 | -------------------------------------------------------------------------------- /lib/src/zocial.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class Zocial { 4 | static const _family = 'Zocial'; 5 | static const _package = 'flutter_vector_icons'; 6 | static const acrobat = 7 | IconData(61696, fontFamily: _family, fontPackage: _package); 8 | static const amazon = 9 | IconData(61697, fontFamily: _family, fontPackage: _package); 10 | static const android = 11 | IconData(61698, fontFamily: _family, fontPackage: _package); 12 | static const angellist = 13 | IconData(61699, fontFamily: _family, fontPackage: _package); 14 | static const aol = 15 | IconData(61700, fontFamily: _family, fontPackage: _package); 16 | static const appnet = 17 | IconData(61701, fontFamily: _family, fontPackage: _package); 18 | static const appstore = 19 | IconData(61702, fontFamily: _family, fontPackage: _package); 20 | static const bitbucket = 21 | IconData(61703, fontFamily: _family, fontPackage: _package); 22 | static const bitcoin = 23 | IconData(61704, fontFamily: _family, fontPackage: _package); 24 | static const blogger = 25 | IconData(61705, fontFamily: _family, fontPackage: _package); 26 | static const buffer = 27 | IconData(61706, fontFamily: _family, fontPackage: _package); 28 | static const cal = 29 | IconData(61707, fontFamily: _family, fontPackage: _package); 30 | static const call = 31 | IconData(61708, fontFamily: _family, fontPackage: _package); 32 | static const cart = 33 | IconData(61709, fontFamily: _family, fontPackage: _package); 34 | static const chrome = 35 | IconData(61710, fontFamily: _family, fontPackage: _package); 36 | static const cloudapp = 37 | IconData(61711, fontFamily: _family, fontPackage: _package); 38 | static const creativecommons = 39 | IconData(61712, fontFamily: _family, fontPackage: _package); 40 | static const delicious = 41 | IconData(61713, fontFamily: _family, fontPackage: _package); 42 | static const digg = 43 | IconData(61714, fontFamily: _family, fontPackage: _package); 44 | static const disqus = 45 | IconData(61715, fontFamily: _family, fontPackage: _package); 46 | static const dribbble = 47 | IconData(61716, fontFamily: _family, fontPackage: _package); 48 | static const dropbox = 49 | IconData(61717, fontFamily: _family, fontPackage: _package); 50 | static const drupal = 51 | IconData(61718, fontFamily: _family, fontPackage: _package); 52 | static const dwolla = 53 | IconData(61720, fontFamily: _family, fontPackage: _package); 54 | static const email = 55 | IconData(61721, fontFamily: _family, fontPackage: _package); 56 | static const eventasaurus = 57 | IconData(61722, fontFamily: _family, fontPackage: _package); 58 | static const eventbrite = 59 | IconData(61723, fontFamily: _family, fontPackage: _package); 60 | static const eventful = 61 | IconData(61724, fontFamily: _family, fontPackage: _package); 62 | static const evernote = 63 | IconData(61725, fontFamily: _family, fontPackage: _package); 64 | static const facebook = 65 | IconData(61726, fontFamily: _family, fontPackage: _package); 66 | static const fivehundredpx = 67 | IconData(61727, fontFamily: _family, fontPackage: _package); 68 | static const flattr = 69 | IconData(61728, fontFamily: _family, fontPackage: _package); 70 | static const flickr = 71 | IconData(61729, fontFamily: _family, fontPackage: _package); 72 | static const forrst = 73 | IconData(61730, fontFamily: _family, fontPackage: _package); 74 | static const foursquare = 75 | IconData(61731, fontFamily: _family, fontPackage: _package); 76 | static const github = 77 | IconData(61732, fontFamily: _family, fontPackage: _package); 78 | static const gmail = 79 | IconData(61733, fontFamily: _family, fontPackage: _package); 80 | static const google = 81 | IconData(61734, fontFamily: _family, fontPackage: _package); 82 | static const googleplay = 83 | IconData(61735, fontFamily: _family, fontPackage: _package); 84 | static const googleplus = 85 | IconData(61736, fontFamily: _family, fontPackage: _package); 86 | static const gowalla = 87 | IconData(61737, fontFamily: _family, fontPackage: _package); 88 | static const grooveshark = 89 | IconData(61738, fontFamily: _family, fontPackage: _package); 90 | static const guest = 91 | IconData(61739, fontFamily: _family, fontPackage: _package); 92 | static const html5 = 93 | IconData(61740, fontFamily: _family, fontPackage: _package); 94 | static const ie = IconData(61741, fontFamily: _family, fontPackage: _package); 95 | static const instagram = 96 | IconData(61742, fontFamily: _family, fontPackage: _package); 97 | static const instapaper = 98 | IconData(61743, fontFamily: _family, fontPackage: _package); 99 | static const intensedebate = 100 | IconData(61744, fontFamily: _family, fontPackage: _package); 101 | static const itunes = 102 | IconData(61745, fontFamily: _family, fontPackage: _package); 103 | static const klout = 104 | IconData(61746, fontFamily: _family, fontPackage: _package); 105 | static const lanyrd = 106 | IconData(61747, fontFamily: _family, fontPackage: _package); 107 | static const lastfm = 108 | IconData(61748, fontFamily: _family, fontPackage: _package); 109 | static const lego = 110 | IconData(61749, fontFamily: _family, fontPackage: _package); 111 | static const linkedin = 112 | IconData(61750, fontFamily: _family, fontPackage: _package); 113 | static const lkdto = 114 | IconData(61751, fontFamily: _family, fontPackage: _package); 115 | static const logmein = 116 | IconData(61752, fontFamily: _family, fontPackage: _package); 117 | static const macstore = 118 | IconData(61753, fontFamily: _family, fontPackage: _package); 119 | static const meetup = 120 | IconData(61754, fontFamily: _family, fontPackage: _package); 121 | static const myspace = 122 | IconData(61755, fontFamily: _family, fontPackage: _package); 123 | static const ninetyninedesigns = 124 | IconData(61756, fontFamily: _family, fontPackage: _package); 125 | static const openid = 126 | IconData(61757, fontFamily: _family, fontPackage: _package); 127 | static const opentable = 128 | IconData(61758, fontFamily: _family, fontPackage: _package); 129 | static const paypal = 130 | IconData(61759, fontFamily: _family, fontPackage: _package); 131 | static const persona = 132 | IconData(61796, fontFamily: _family, fontPackage: _package); 133 | static const pinboard = 134 | IconData(61760, fontFamily: _family, fontPackage: _package); 135 | static const pinterest = 136 | IconData(61761, fontFamily: _family, fontPackage: _package); 137 | static const plancast = 138 | IconData(61762, fontFamily: _family, fontPackage: _package); 139 | static const plurk = 140 | IconData(61763, fontFamily: _family, fontPackage: _package); 141 | static const pocket = 142 | IconData(61764, fontFamily: _family, fontPackage: _package); 143 | static const podcast = 144 | IconData(61765, fontFamily: _family, fontPackage: _package); 145 | static const posterous = 146 | IconData(61766, fontFamily: _family, fontPackage: _package); 147 | static const print = 148 | IconData(61767, fontFamily: _family, fontPackage: _package); 149 | static const quora = 150 | IconData(61768, fontFamily: _family, fontPackage: _package); 151 | static const reddit = 152 | IconData(61769, fontFamily: _family, fontPackage: _package); 153 | static const rss = 154 | IconData(61770, fontFamily: _family, fontPackage: _package); 155 | static const scribd = 156 | IconData(61771, fontFamily: _family, fontPackage: _package); 157 | static const skype = 158 | IconData(61772, fontFamily: _family, fontPackage: _package); 159 | static const smashing = 160 | IconData(61773, fontFamily: _family, fontPackage: _package); 161 | static const songkick = 162 | IconData(61774, fontFamily: _family, fontPackage: _package); 163 | static const soundcloud = 164 | IconData(61775, fontFamily: _family, fontPackage: _package); 165 | static const spotify = 166 | IconData(61776, fontFamily: _family, fontPackage: _package); 167 | static const stackoverflow = 168 | IconData(61777, fontFamily: _family, fontPackage: _package); 169 | static const statusnet = 170 | IconData(61778, fontFamily: _family, fontPackage: _package); 171 | static const steam = 172 | IconData(61779, fontFamily: _family, fontPackage: _package); 173 | static const stripe = 174 | IconData(61780, fontFamily: _family, fontPackage: _package); 175 | static const stumbleupon = 176 | IconData(61781, fontFamily: _family, fontPackage: _package); 177 | static const tumblr = 178 | IconData(61782, fontFamily: _family, fontPackage: _package); 179 | static const twitter = 180 | IconData(61783, fontFamily: _family, fontPackage: _package); 181 | static const viadeo = 182 | IconData(61784, fontFamily: _family, fontPackage: _package); 183 | static const vimeo = 184 | IconData(61785, fontFamily: _family, fontPackage: _package); 185 | static const vk = IconData(61786, fontFamily: _family, fontPackage: _package); 186 | static const weibo = 187 | IconData(61787, fontFamily: _family, fontPackage: _package); 188 | static const wikipedia = 189 | IconData(61788, fontFamily: _family, fontPackage: _package); 190 | static const windows = 191 | IconData(61789, fontFamily: _family, fontPackage: _package); 192 | static const wordpress = 193 | IconData(61790, fontFamily: _family, fontPackage: _package); 194 | static const xing = 195 | IconData(61791, fontFamily: _family, fontPackage: _package); 196 | static const yahoo = 197 | IconData(61792, fontFamily: _family, fontPackage: _package); 198 | static const ycombinator = 199 | IconData(61793, fontFamily: _family, fontPackage: _package); 200 | static const yelp = 201 | IconData(61794, fontFamily: _family, fontPackage: _package); 202 | static const youtube = 203 | IconData(61795, fontFamily: _family, fontPackage: _package); 204 | } 205 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_vector_icons 2 | description: Customizable Icons for Flutter. Port of react-native-vector-icons 3 | version: 2.0.0 4 | homepage: "https://github.com/pd4d10/flutter-vector-icons" 5 | environment: 6 | sdk: ">=2.12.0 <3.0.0" 7 | dependencies: 8 | flutter: 9 | sdk: flutter 10 | dev_dependencies: 11 | flutter_test: 12 | sdk: flutter 13 | flutter: 14 | fonts: 15 | - family: AntDesign 16 | fonts: 17 | - asset: fonts/AntDesign.ttf 18 | - family: Entypo 19 | fonts: 20 | - asset: fonts/Entypo.ttf 21 | - family: EvilIcons 22 | fonts: 23 | - asset: fonts/EvilIcons.ttf 24 | - family: Feather 25 | fonts: 26 | - asset: fonts/Feather.ttf 27 | - family: FontAwesome 28 | fonts: 29 | - asset: fonts/FontAwesome.ttf 30 | - family: FontAwesome5_Brands 31 | fonts: 32 | - asset: fonts/FontAwesome5_Brands.ttf 33 | - family: FontAwesome5_Regular 34 | fonts: 35 | - asset: fonts/FontAwesome5_Regular.ttf 36 | - family: FontAwesome5_Solid 37 | fonts: 38 | - asset: fonts/FontAwesome5_Solid.ttf 39 | - family: Fontisto 40 | fonts: 41 | - asset: fonts/Fontisto.ttf 42 | - family: Foundation 43 | fonts: 44 | - asset: fonts/Foundation.ttf 45 | - family: Ionicons 46 | fonts: 47 | - asset: fonts/Ionicons.ttf 48 | - family: MaterialCommunityIcons 49 | fonts: 50 | - asset: fonts/MaterialCommunityIcons.ttf 51 | - family: MaterialIcons 52 | fonts: 53 | - asset: fonts/MaterialIcons.ttf 54 | - family: Octicons 55 | fonts: 56 | - asset: fonts/Octicons.ttf 57 | - family: SimpleLineIcons 58 | fonts: 59 | - asset: fonts/SimpleLineIcons.ttf 60 | - family: Zocial 61 | fonts: 62 | - asset: fonts/Zocial.ttf 63 | -------------------------------------------------------------------------------- /test/flutter_vector_icons_test.dart: -------------------------------------------------------------------------------- 1 | void main() {} 2 | -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildCommand": "cd example && ../flutter/bin/flutter build web", 3 | "outputDirectory": "example/build/web", 4 | "installCommand": "git clone https://github.com/flutter/flutter.git --branch stable && flutter/bin/flutter pub get" 5 | } 6 | --------------------------------------------------------------------------------