Fixes in localization. Fix splash screen background.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user