Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
show raw photos
Browse files Browse the repository at this point in the history
  • Loading branch information
thielepaul committed Mar 4, 2022
1 parent 5447698 commit ed463ea
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/model/filter_photos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:enum_to_string/enum_to_string.dart';
import 'package:shared_preferences/shared_preferences.dart';

enum PhotoSort { TakenAt, CreatedAt, UpdatedAt }
enum PhotoType { Image, Live, Video }
enum PhotoType { Image, Live, Video, Raw }
enum PhotoList { Default, Archive, Private }

class FilterPhotos {
Expand All @@ -15,7 +15,8 @@ class FilterPhotos {
Set<PhotoType> types = const <PhotoType>{
PhotoType.Image,
PhotoType.Live,
PhotoType.Video
PhotoType.Video,
PhotoType.Raw,
},
this.list = PhotoList.Default}) {
this.types = types.toSet();
Expand Down Expand Up @@ -60,7 +61,11 @@ class FilterPhotos {

OrderingMode order = OrderingMode.desc;
PhotoSort sort = PhotoSort.TakenAt;
Set<PhotoType> types = <PhotoType>{PhotoType.Image, PhotoType.Live};
Set<PhotoType> types = <PhotoType>{
PhotoType.Image,
PhotoType.Live,
PhotoType.Raw,
};
PhotoList list = PhotoList.Default;

Iterable<String> get typesAsString =>
Expand Down

0 comments on commit ed463ea

Please sign in to comment.