Skip to content
Snippets Groups Projects
Commit 621fdd7a authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Add autosave settings

parent 35aba403
No related branches found
No related tags found
1 merge request!43Resolve "Autosave settings"
Pipeline #4704 passed
This commit is part of merge request !43. Comments created here will be created in the context of that merge request.
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.42
app.versionCode=42
app.versionName=0.0.43
app.versionCode=43
Auto save settings.
Sauvegarde automatique du paramétrage.
......@@ -116,6 +116,7 @@ class _SettingsFormState extends State<SettingsForm> {
_selectedDiscoveriesDaysCount[i] = i == index;
}
});
saveSettings();
},
borderRadius: const BorderRadius.all(Radius.circular(8)),
constraints: const BoxConstraints(minHeight: 30.0, minWidth: 30.0),
......@@ -139,6 +140,7 @@ class _SettingsFormState extends State<SettingsForm> {
_selectedDistributionDaysCount[i] = i == index;
}
});
saveSettings();
},
borderRadius: const BorderRadius.all(Radius.circular(8)),
constraints: const BoxConstraints(minHeight: 30.0, minWidth: 30.0),
......@@ -162,6 +164,7 @@ class _SettingsFormState extends State<SettingsForm> {
_selectedStatisticsRecentDaysCount[i] = i == index;
}
});
saveSettings();
},
borderRadius: const BorderRadius.all(Radius.circular(8)),
constraints: const BoxConstraints(minHeight: 30.0, minWidth: 30.0),
......@@ -185,6 +188,7 @@ class _SettingsFormState extends State<SettingsForm> {
_selectedTimelineDaysCount[i] = i == index;
}
});
saveSettings();
},
borderRadius: const BorderRadius.all(Radius.circular(8)),
constraints: const BoxConstraints(minHeight: 30.0, minWidth: 30.0),
......@@ -208,6 +212,7 @@ class _SettingsFormState extends State<SettingsForm> {
_selectedTopArtistsDaysCount[i] = i == index;
}
});
saveSettings();
},
borderRadius: const BorderRadius.all(Radius.circular(8)),
constraints: const BoxConstraints(minHeight: 30.0, minWidth: 30.0),
......@@ -218,18 +223,18 @@ class _SettingsFormState extends State<SettingsForm> {
),
// Save
ElevatedButton(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(UniconsLine.save),
SizedBox(width: 8),
Text('settings_button_save').tr(),
],
),
onPressed: () => saveSettings(),
),
// ElevatedButton(
// child: Row(
// mainAxisAlignment: MainAxisAlignment.center,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: [
// Icon(UniconsLine.save),
// SizedBox(width: 8),
// Text('settings_button_save').tr(),
// ],
// ),
// onPressed: () => saveSettings(),
// ),
],
);
}
......
......@@ -3,7 +3,7 @@ description: Display scrobbles data and charts
publish_to: 'none'
version: 0.0.42+42
version: 0.0.43+43
environment:
sdk: '^3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment