Skip to content

Commit 73d36db

Browse files
Merge pull request #96 from dakshvasudev/doc/sizedbox-documentation
docs: sizedbox documentation
2 parents 7c4a51c + 0ef818b commit 73d36db

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

website/docs/widgets/sized_box.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SizedBox
2+
3+
Mirai sizedBox allows you to build the Flutter sizedBox widget using JSON.
4+
To know more about the sizedBox widget in Flutter, refer to the [official documentation](https://api.flutter.dev/flutter/widgets/SizedBox-class.html).
5+
6+
## Properties
7+
8+
| Property | Type | Description |
9+
| -------- | ----------------------- | ------------------------------------ |
10+
| width | `double?` | The width of the SizedBox |
11+
| height | `double?` | The height of the SizedBox |
12+
| child | `Map<String, dynamic>?` | The child widget inside the SizedBox |
13+
14+
## Example JSON
15+
16+
```json
17+
{
18+
"type": "sizedBox",
19+
"height": 25
20+
}
21+
```

0 commit comments

Comments
 (0)