-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Import icons from the POC (#4747)
* Import all icons from the POC * Add a missing type
- Loading branch information
Showing
60 changed files
with
1,902 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# App icons | ||
|
||
We don't use icons from SVG, but from a font. | ||
|
||
Font icons are way more efficient for multiple reasons: | ||
- There is a tree-shaking process that removes unused icons on release builds | ||
- When we want to apply a shadow, a text (= icon from font) is way more efficient than an SVG | ||
|
||
## How to generate the font? | ||
|
||
1. Go to https://www.fluttericon.com/ | ||
2. Click on `Import` and select `config.json` | ||
3. Please ensure to only have **squared** icons | ||
4. If you have a red warning BUT the visual is OK, you can ignore it | ||
5. Once your changes are OK, download the archive | ||
6. Place the font in `assets/fonts/` | ||
7. Update `config.json` with the new version of the font | ||
8. Update `lib/resources/app_icons_font.dart` | ||
9. Create new Widgets for each icon in `lib/resources/app_icons.dart` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.