Added option to show folders always on top in files
This commit is contained in:
13
lib/storage/file/fileSettings.dart
Normal file
13
lib/storage/file/fileSettings.dart
Normal file
@ -0,0 +1,13 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'fileSettings.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class FileSettings {
|
||||
bool sortFoldersToTop;
|
||||
|
||||
FileSettings({required this.sortFoldersToTop});
|
||||
|
||||
factory FileSettings.fromJson(Map<String, dynamic> json) => _$FileSettingsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$FileSettingsToJson(this);
|
||||
}
|
16
lib/storage/file/fileSettings.g.dart
Normal file
16
lib/storage/file/fileSettings.g.dart
Normal file
@ -0,0 +1,16 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'fileSettings.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
FileSettings _$FileSettingsFromJson(Map<String, dynamic> json) => FileSettings(
|
||||
sortFoldersToTop: json['sortFoldersToTop'] as bool,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$FileSettingsToJson(FileSettings instance) =>
|
||||
<String, dynamic>{
|
||||
'sortFoldersToTop': instance.sortFoldersToTop,
|
||||
};
|
Reference in New Issue
Block a user