Files
divkit/test_data/snapshot_test_data/div-container/block-alignment.json
T
man-y eed44f448f Mark flutter platform supported tests
commit_hash:a80884f8d89a14490cb02e5278507f93ef7fb589
2025-01-13 16:09:03 +03:00

84 lines
1.9 KiB
JSON

{
"description": "Container with content aligned left-to-right. Start/end text blocks should be aligned according to the alignment (left-to-right), left/right must stay unchanged.",
"platforms": [
"android",
"ios",
"web",
"flutter"
],
"templates": {
"text_block": {
"type": "text",
"font_size": 12,
"line_height": 15,
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"alignment_horizontal": "center",
"text_color": "#ffffff",
"width": {
"type": "fixed",
"value": 80
},
"paddings": {
"top": 13,
"bottom": 13,
"left": 8,
"right": 8
},
"background": [
{
"type": "solid",
"color": "#808080"
}
],
"border": {
"corner_radius": 16
}
}
},
"card": {
"log_id": "sample_card",
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"items": [
{
"type": "text_block",
"alignment_horizontal": "left",
"text": "left"
},
{
"type": "text_block",
"alignment_horizontal": "center",
"text": "center"
},
{
"type": "text_block",
"alignment_horizontal": "right",
"text": "right"
},
{
"type": "text_block",
"alignment_horizontal": "start",
"text": "start"
},
{
"type": "text_block",
"alignment_horizontal": "center",
"text": "center"
},
{
"type": "text_block",
"alignment_horizontal": "end",
"text": "end"
}
]
}
}
]
}
}