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">
<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" />
<method />
<method v="2" />
</configuration>
</component>

View File

@ -34,6 +34,7 @@ class _SettingState extends State<Settings> {
int serverPort;
bool useHttps;
bool needsAuth;
bool darkTheme;
String userId;
String userPassword;
@ -44,6 +45,7 @@ class _SettingState extends State<Settings> {
serverPort = 4316;
useHttps = false;
needsAuth = false;
darkTheme = false;
userId = 'openlp';
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(
title: Text('Use HTTPS'),
onChanged: (value) {