From 0a209e1d9ed7538255da92ac9126512f03227e6e Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 8 Aug 2019 16:59:52 +0100 Subject: [PATCH] first changes --- .idea/runConfigurations/main_dart.xml | 4 ++-- lib/src/screens/settings.dart | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.idea/runConfigurations/main_dart.xml b/.idea/runConfigurations/main_dart.xml index aab7b5c..934fdfc 100644 --- a/.idea/runConfigurations/main_dart.xml +++ b/.idea/runConfigurations/main_dart.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/lib/src/screens/settings.dart b/lib/src/screens/settings.dart index 6ca4dca..936d000 100644 --- a/lib/src/screens/settings.dart +++ b/lib/src/screens/settings.dart @@ -34,6 +34,7 @@ class _SettingState extends State { int serverPort; bool useHttps; bool needsAuth; + bool darkTheme; String userId; String userPassword; @@ -44,6 +45,7 @@ class _SettingState extends State { serverPort = 4316; useHttps = false; needsAuth = false; + darkTheme = false; userId = 'openlp'; userPassword = 'password'; } @@ -76,6 +78,15 @@ class _SettingState extends State { ); }, ), + CheckboxListTile( + title: Text('Use Dark theme'), + onChanged: (value) { + setState(() { + darkTheme = value; + }); + }, + value: useHttps, + ), CheckboxListTile( title: Text('Use HTTPS'), onChanged: (value) {