first changes

This commit is contained in:
Tim 2019-08-08 16:59:52 +01:00
parent c34358b559
commit 0a209e1d9e
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager"> <component name="ProjectRunConfigurationManager">
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter"> <configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter" singleton="false">
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" /> <option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
<method /> <method v="2" />
</configuration> </configuration>
</component> </component>

View File

@ -34,6 +34,7 @@ class _SettingState extends State<Settings> {
int serverPort; int serverPort;
bool useHttps; bool useHttps;
bool needsAuth; bool needsAuth;
bool darkTheme;
String userId; String userId;
String userPassword; String userPassword;
@ -44,6 +45,7 @@ class _SettingState extends State<Settings> {
serverPort = 4316; serverPort = 4316;
useHttps = false; useHttps = false;
needsAuth = false; needsAuth = false;
darkTheme = false;
userId = 'openlp'; userId = 'openlp';
userPassword = 'password'; userPassword = 'password';
} }
@ -76,6 +78,15 @@ class _SettingState extends State<Settings> {
); );
}, },
), ),
CheckboxListTile(
title: Text('Use Dark theme'),
onChanged: (value) {
setState(() {
darkTheme = value;
});
},
value: useHttps,
),
CheckboxListTile( CheckboxListTile(
title: Text('Use HTTPS'), title: Text('Use HTTPS'),
onChanged: (value) { onChanged: (value) {