diff --git a/examples/mirai_gallery/assets/json/align_example.json b/examples/mirai_gallery/assets/json/align_example.json new file mode 100644 index 00000000..eda9900c --- /dev/null +++ b/examples/mirai_gallery/assets/json/align_example.json @@ -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" + } + } + } + } + } +} \ No newline at end of file diff --git a/examples/mirai_gallery/assets/json/home_screen.json b/examples/mirai_gallery/assets/json/home_screen.json index 6117f958..f53e458d 100644 --- a/examples/mirai_gallery/assets/json/home_screen.json +++ b/examples/mirai_gallery/assets/json/home_screen.json @@ -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": {