mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-11 08:08:00 -06:00
fix: Update type adapter for ThemeMode
This commit is contained in:
@@ -12,9 +12,9 @@ class ThemeModeAdapter extends TypeAdapter<ThemeMode> {
|
|||||||
case 0:
|
case 0:
|
||||||
return ThemeMode.system;
|
return ThemeMode.system;
|
||||||
case 1:
|
case 1:
|
||||||
return ThemeMode.dark;
|
|
||||||
case 2:
|
|
||||||
return ThemeMode.light;
|
return ThemeMode.light;
|
||||||
|
case 2:
|
||||||
|
return ThemeMode.dark;
|
||||||
default:
|
default:
|
||||||
return ThemeMode.system;
|
return ThemeMode.system;
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,5 @@ class ThemeModeAdapter extends TypeAdapter<ThemeMode> {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
other is ThemeModeAdapter &&
|
other is ThemeModeAdapter && runtimeType == other.runtimeType && typeId == other.typeId;
|
||||||
runtimeType == other.runtimeType &&
|
|
||||||
typeId == other.typeId;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user