diff --git a/assets/2.0x/type_live.png b/assets/2.0x/type_live.png new file mode 100644 index 0000000000000000000000000000000000000000..762cd162c8adde03757800d02608b0ffc4425c2f Binary files /dev/null and b/assets/2.0x/type_live.png differ diff --git a/assets/2.0x/type_photos.png b/assets/2.0x/type_photos.png new file mode 100644 index 0000000000000000000000000000000000000000..07332e836ad214ce45779a6231b3b891e8a0bc4f Binary files /dev/null and b/assets/2.0x/type_photos.png differ diff --git a/assets/2.0x/type_videos.png b/assets/2.0x/type_videos.png new file mode 100644 index 0000000000000000000000000000000000000000..d56bbb556f59aea70c5593cb2d08cbc80c76aeba Binary files /dev/null and b/assets/2.0x/type_videos.png differ diff --git a/assets/3.0x/type_live.png b/assets/3.0x/type_live.png new file mode 100644 index 0000000000000000000000000000000000000000..a374691284695d9e4d7a688d1f23c4912c2903ef Binary files /dev/null and b/assets/3.0x/type_live.png differ diff --git a/assets/3.0x/type_photos.png b/assets/3.0x/type_photos.png new file mode 100644 index 0000000000000000000000000000000000000000..8a9279a4fc704055b4caddb7a1fa70292076c123 Binary files /dev/null and b/assets/3.0x/type_photos.png differ diff --git a/assets/3.0x/type_videos.png b/assets/3.0x/type_videos.png new file mode 100644 index 0000000000000000000000000000000000000000..99967ea5f645f5679d8df8dd0049078de591aec9 Binary files /dev/null and b/assets/3.0x/type_videos.png differ diff --git a/assets/type_live.png b/assets/type_live.png new file mode 100644 index 0000000000000000000000000000000000000000..f2dbd30953c42910cdad5240ad95b5dce35dbc81 Binary files /dev/null and b/assets/type_live.png differ diff --git a/assets/type_photos.png b/assets/type_photos.png new file mode 100644 index 0000000000000000000000000000000000000000..b83abe698d8a57ce7c479f631ee3cfeed44b7097 Binary files /dev/null and b/assets/type_photos.png differ diff --git a/assets/type_videos.png b/assets/type_videos.png new file mode 100644 index 0000000000000000000000000000000000000000..c86768afcb76fe9a50744ed6557b8be1e39d7cf5 Binary files /dev/null and b/assets/type_videos.png differ diff --git a/lib/ui/viewer/search_tab/file_type_section.dart b/lib/ui/viewer/search_tab/file_type_section.dart index 2c19b95f1d50c2132795070e96b07f740d2546c8..2a01ed543cf93e484d5a6015008373db9d2d3ee5 100644 --- a/lib/ui/viewer/search_tab/file_type_section.dart +++ b/lib/ui/viewer/search_tab/file_type_section.dart @@ -129,6 +129,9 @@ class _FileTypeSectionState extends State { class FileTypeRecommendation extends StatelessWidget { static const knownTypesToAssetPath = { + "PHOTO": "assets/type_photos.png", + "VIDEO": "assets/type_videos.png", + "LIVE": "assets/type_live.png", "AVI": "assets/type_AVI.png", "GIF": "assets/type_GIF.png", "HEIC": "assets/type_HEIC.png", @@ -150,7 +153,8 @@ class FileTypeRecommendation extends StatelessWidget { .call() .replaceAll(RegExp(r'.$'), "") .split(" ") - .first; + .first + .toUpperCase(); final assetPath = knownTypesToAssetPath[fileType]; return Padding( padding: const EdgeInsets.symmetric(horizontal: 8),