mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-11 10:08:02 -06:00
feat: Externalize settings into LocalUserAppState, fix bugs
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:paperless_mobile/core/config/hive/hive_config.dart';
|
||||
|
||||
part 'view_type.g.dart';
|
||||
|
||||
@HiveType(typeId: HiveTypeIds.viewType)
|
||||
enum ViewType {
|
||||
@HiveField(0)
|
||||
grid,
|
||||
@HiveField(1)
|
||||
list,
|
||||
@HiveField(2)
|
||||
detailed;
|
||||
|
||||
ViewType toggle() {
|
||||
|
||||
Reference in New Issue
Block a user