sitzung luc

This commit is contained in:
Nico
2024-03-15 19:22:46 +01:00
parent 624bb38846
commit d157757893
12 changed files with 158 additions and 82 deletions

View File

@@ -47,6 +47,11 @@ class _SettingsState extends State<Settings> {
await prefs.setString('nameVorname', nameVornameC.text);
}
void _saveBLand() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
await prefs.setString('bLand', bLandC.text);
}
@override
Widget build(BuildContext context) {
return Scaffold(
@@ -95,6 +100,7 @@ class _SettingsState extends State<Settings> {
child: const Icon(Icons.save),
onPressed: () {
_saveName();
_saveBLand();
}),
);
}