Skip to content

Commit

Permalink
chore: Import icons from the POC (#4747)
Browse files Browse the repository at this point in the history
* Import all icons from the POC

* Add a missing type
  • Loading branch information
g123k committed Oct 31, 2023
1 parent cecf0c6 commit dceeee7
Show file tree
Hide file tree
Showing 60 changed files with 1,902 additions and 1 deletion.
Binary file added packages/smooth_app/assets/fonts/SmoothIcons.ttf
Binary file not shown.
19 changes: 19 additions & 0 deletions packages/smooth_app/assets/fonts/icons/README.md
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`
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/fonts/icons/add.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/smooth_app/assets/fonts/icons/add_to_list.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/fonts/icons/advanced_search.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/smooth_app/assets/fonts/icons/arrow_circled.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/fonts/icons/arrow_right.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/smooth_app/assets/fonts/icons/barcode.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/smooth_app/assets/fonts/icons/barcode_corners.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/smooth_app/assets/fonts/icons/barcode_rounded.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/fonts/icons/camera_filled.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/fonts/icons/camera_outlined.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dceeee7

Please sign in to comment.