mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
initial commit
This commit is contained in:
23
lib/foundation/appdata.dart
Normal file
23
lib/foundation/appdata.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
class _Appdata {
|
||||
final _Settings settings = _Settings();
|
||||
}
|
||||
|
||||
final appdata = _Appdata();
|
||||
|
||||
class _Settings {
|
||||
_Settings();
|
||||
|
||||
final _data = <String, dynamic>{
|
||||
'comicDisplayMode': 'detailed', // detailed, brief
|
||||
'comicTileScale': 1.0, // 0.8-1.2
|
||||
'color': 'blue', // red, pink, purple, green, orange, blue
|
||||
'theme_mode': 'system', // light, dark, system
|
||||
'newFavoriteAddTo': 'end', // start, end
|
||||
'moveFavoriteAfterRead': 'none', // none, end, start
|
||||
'proxy': 'direct', // direct, system, proxy string
|
||||
};
|
||||
|
||||
operator[](String key) {
|
||||
return _data[key];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user