mockWidget method
Implementation
UikCardProps mockWidget() {
return UikCardProps.fromJson({
"id": "UikCard",
"titlePosition": "start",
"color": "0xFF4297C3",
"height": 350.0,
"margin": 12.0,
"clipBehavior": "none",
// "title": {"id": "title",
// "titleType":"text",
// "title": {
// "id": "text",
// "text": "Hello this is title",
// "size": "26.0",
// "action": {
// "tap": {
// "type": "UIK_OPEN_WEB",
// "data": {
// "url":
// "https://sylhetmirror.com/2022/04/03/tesla-delivers-over-1-million-electric-cars-over-past-year/"
// }
// }
// }
// },
// },
"image":
"https://upload.wikimedia.org/wikipedia/commons/e/e7/Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg",
"showImage": "true",
// "buttonBar": {
// "id": "buttonBar",
// "textDirection": "ltr",
// "children": [],
// },
"contentType": "text",
"content": {
"id": "text",
"text": "Mountains",
"size": "24.0",
"action": {
"tap": {
"type": "UIK_OPEN_WEB",
"data": {
"url":
"https://sylhetmirror.com/2022/04/03/tesla-delivers-over-1-million-electric-cars-over-past-year/"
}
}
}
},
// "gradient": ["0xFF4297C3", "0xFF7A3347", "0xFFA95023"],
});
}