sitzung luc
This commit is contained in:
@@ -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();
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user