Локализация экрана настроек, удалил лишние конфигурации сборки
This commit is contained in:
16
lib/db.dart
16
lib/db.dart
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user