Локализация экрана настроек, удалил лишние конфигурации сборки

This commit is contained in:
Ivan Murashov
2017-09-11 11:41:20 +03:00
parent 0dc8ab5da0
commit 0dde204dcd
12 changed files with 131 additions and 57 deletions

View File

@@ -90,7 +90,7 @@ class SqliteHelper {
Future<String> getMerchantID() async {
Map session = await selectAll(tableSession);
String merchantID = session != null ? session[columnMerchantID] : null;
print('token: {$merchantID}');
print('merchantID: {$merchantID}');
return merchantID;
}
@@ -107,6 +107,20 @@ class SqliteHelper {
return docID;
}
Future<String> getLocale() async {
Map settings = await selectAll(tableSettings);
String locale = settings != null ? settings[columnLocale] : null;
print('locale: {$locale}');
return locale;
}
Future<String> getCurrency() async {
Map settings = await selectAll(tableSettings);
String currency = settings != null ? settings[columnCurrency] : null;
print('currency: {$currency}');
return currency;
}
Future<Map> selectAll(String table) async {
List<Map> maps = await db.query(table, columns: null);