diff --git a/lib/backend/data.dart b/lib/backend/data.dart index 2186404..d70bddf 100644 --- a/lib/backend/data.dart +++ b/lib/backend/data.dart @@ -114,6 +114,12 @@ class Settings { SettingTable.system, 0, ); + + static const Setting screen_off_animation = Setting( + "screen_off_animation", + SettingTable.system, + 0, + ); } class Properties { @@ -317,7 +323,7 @@ class Pages { selectedIcon: Icons.lock, sections: [ PageSection( - title: "Keyguard gestures", + title: "Keyguard", preferences: [ DropdownSettingPreference( setting: Settings.torch_power_button_gesture, @@ -329,6 +335,16 @@ class Pages { }, icon: MdiIcons.lamp, ), + DropdownSettingPreference( + setting: Settings.screen_off_animation, + title: "Screen off animation", + options: { + 0: "Default", + 1: "CRT", + 2: "Scale" + }, + icon: Icons.phone, + ), ], ), ], diff --git a/pubspec.lock b/pubspec.lock index 038c64a..e26ad31 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -101,7 +101,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.2" + version: "0.1.3" material_design_icons_flutter: dependency: "direct main" description: