Dynamic Components Schema not displaying properly

Hello everyone! :wave:

I’m creating an app with the Dynamic Components Extension created by @yusufcihan and I created a schema template following the Github instructions.

My problem is that, when I use the JSON template on my app, the card doesn’t display properly:


The template was created from this app


My app displays this…

My schema:

{
“name”: “dynamictemplate”,
“metadata-version”: 1,
“author”: “Markus Urban”,
“platforms”: [
“Kodular”
],
“keys”: [
“title”,
“icon”,
“color”
],
“components”: [
{
“id”: “project_category”,
“type”: “VerticalArrangement”,
“properties”: {
“BackgroundColor”: 4294967295,
“Width”: -1080,
“isCard”: true
},
“components”: [
{
“id”: “Space7_copy1_copy_copy_copy”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: -2
}
},
{
“id”: “Horizontal_Arrangement3_copy_copy_copy”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignVertical”: 2,
“Width”: -2
},
“components”: [
{
“id”: “Space8_copy1_copy_copy”,
“type”: “SpaceView”,
“properties”: {
“Height”: -2,
“Width”: 20
}
},
{
“id”: “category_name”,
“type”: “Label”,
“properties”: {
“FontTypefaceImport”: “bold.ttf”,
“Width”: -2,
“Text”: “{title}”,
“TextColor”: 4284513675
}
},
{
“id”: “category_icon”,
“type”: “Label”,
“properties”: {
“FontSize”: 30,
“FontTypefaceImport”: “material.ttf”,
“Text”: “{icon}”,
“TextColor”: “{color}”
}
}
]
},
{
“id”: “Space7_copy_copy_copy_copy”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: -2
}
}
]
}
]
}

How can I solve that?

Thank you very much for your help,
Markus

As I far seen the difference in your schema design and other design there is only background color is different in both and the problem seems in your vertical arrangement property where background color is 4294967295 and AFAIK the white color’s code is -1 but you are using other code

Thanks for your answer!
So, which code should I change to solve the problem?

I am not sure the problem is in your bg color but I think the problem is there so you can try to change it to -1

1 Like

Thanks! I’m going to try it now :+1:

It worked! Thank you very much. :+1: :grinning:
Have a nice day!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.