Made defaultvallue part of formitem

This commit is contained in:
Imran Remtulla
2022-12-19 19:48:37 -05:00
parent 1fe9e4f91e
commit afc8e41171
7 changed files with 61 additions and 72 deletions

View File

@@ -147,12 +147,7 @@ class _SettingsPageState extends State<SettingsPage> {
settingsProvider.setSettingString(key, value);
});
}
},
defaultValues: Map.fromEntries(
e.additionalSourceSpecificSettingFormItems.map((e) {
return MapEntry(
e.key, settingsProvider.getSettingString(e.key) ?? '');
})));
});
} else {
return Container();
}