Fixes in localization. Fix splash screen background.

This commit is contained in:
Ivan Murashov
2018-02-13 22:37:17 +03:00
parent db75d2b35f
commit 3359c0abb4
10 changed files with 13 additions and 15 deletions

View File

@@ -7,7 +7,11 @@ class Resources {
}
static String getSplash(String app) {
return 'assets/${'pip'}_splash.png';
if (app == 'autobonus') {
return 'assets/${app}_splash.png';
} else {
return 'assets/dinect_splash.png';
}
}
static Color getPrimaryColor(String app) {

View File

@@ -127,11 +127,7 @@ class FAQScreenState<T> extends BaseState<FAQScreen> {
/// Метод возвращает ListView с блоками faq.
@override Widget getScreenContent() {
if (data == null) {
return new Container(
decoration: new BoxDecoration(
image: new DecorationImage(
image: new ExactAssetImage(Resources.getSplash(app)),
fit: BoxFit.cover)));
return getBackground();
} else {
return new WillPopScope(onWillPop: onWillPop, child: new ListView.builder(
itemBuilder: (BuildContext context, int index) =>

View File

@@ -13,7 +13,6 @@ class StringsLocalization {
var document = xml.parse(await loadStrings(l));
strings.clear();
document.findAllElements('string').forEach((node) {
print("${node.attributes} : ${node.text.toString()}");
strings[node.attributes[0].value] = node.text.toString();
});
return strings;