Skip to content

Commit

Permalink
#191 - 📝 added align to Mirai Gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritam Das committed Oct 13, 2023
1 parent cf5091f commit a371ceb
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
33 changes: 33 additions & 0 deletions examples/mirai_gallery/assets/json/align_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"type": "scaffold",
"appBar": {
"type": "appBar",
"title": {
"type": "text",
"data": "Align"
}
},
"body": {
"type": "align",
"alignment": "topEnd",
"child": {
"type": "container",
"color": "#FC5632",
"clipBehavior": "hardEdge",
"height": 250,
"width": 200,
"child": {
"type": "align",
"alignment": "bottomCenter",
"child": {
"type": "text",
"data": "Flutter",
"style": {
"fontSize": 23,
"fontWeight": "w600"
}
}
}
}
}
}
31 changes: 31 additions & 0 deletions examples/mirai_gallery/assets/json/home_screen.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,37 @@
}
}
},
{
"type": "listTile",
"leading": {
"type": "icon",
"iconType": "material",
"icon": "format_align_center"
},
"title": {
"type": "text",
"data": "Mirai Align",
"style": {
"fontSize": 21
}
},
"subtitle": {
"type": "text",
"data": "widget that is used to align its child within itself and optionally sizes itself based on the child’s size",
"style": {
"fontSize": 12
}
},
"isThreeLine": true,
"onTap": {
"actionType": "navigate",
"navigationStyle": "push",
"widgetJson": {
"type": "exampleScreen",
"assetPath": "assets/json/align_example.json"
}
}
},
{
"type": "listTile",
"leading": {
Expand Down

0 comments on commit a371ceb

Please sign in to comment.