add a setting for original image

This commit is contained in:
wgh19
2024-05-31 19:32:46 +08:00
parent 5e53c57755
commit 9275024050
4 changed files with 20 additions and 4 deletions

View File

@@ -252,6 +252,16 @@ class _SettingsPageState extends State<SettingsPage> {
context.to(() => const ShortcutsSettings());
},
)),
buildItem(
title: "Display the original image on the details page".tl,
action: ToggleSwitch(
checked: appdata.settings['showOriginalImage'],
onChanged: (value) {
setState(() {
appdata.settings['showOriginalImage'] = value;
});
appdata.writeData();
})),
],
),
);