Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions website/docs/widgets/expanded.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Expanded

The Mirai Expanded allows you to build a Flutter expanded widget using JSON.
To know more about the expanded widget in Flutter, refer to the [official documentation](https://api.flutter.dev/flutter/widgets/Expanded-class.html).

## Properties

| Property | Type | Description |
|----------|-------------------------|------------------------------------------------------------------|
| flex | `int` | The flex factor to use for the expanded widget. Defaults to `1`. |
| child | `Map<String, dynamic>?` | The widget to display inside the expanded widget. |

## Example JSON

```json
{
"type": "expanded",
"flex": 2,
"child": {
"type": "text",
"data": "Hello, World!"
}
}
```