Работает функционал переключения валют, остались правки по ui

This commit is contained in:
Ivan Murashov
2017-09-11 16:43:13 +03:00
parent e492a3a146
commit bc092ca8f9
6 changed files with 82 additions and 29 deletions

View File

@@ -114,9 +114,15 @@ class SqliteHelper {
return locale;
}
Future<String> getCurrency() async {
Future<int> getCurrency() async {
Map settings = await selectAll(tableSettings);
String currency = settings != null ? settings[columnCurrency] : null;
int currency = settings != null ? settings[columnCurrency] : null;
print('currency: {$currency}');
return currency;
}
Future<int> saveCurrency(int currency) async {
db.update(tableSettings, {columnCurrency: currency});
print('currency: {$currency}');
return currency;
}