Skip to content

Commit

Permalink
docs: add mirai opacity widget markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothvino42 committed Jan 12, 2025
1 parent 7241fcb commit f8f2c8c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions website/docs/widgets/opacity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Opacity

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

## Properties

| Property | Type | Description |
| -------- | ---------------------- | ---------------------------------------------------------------------------------------------------- |
| opacity | `double` | The opacity value between 0.0 and 1.0 which controls the visibility of the child, with 0.0 being fully transparent (invisible) and 1.0 being fully opaque (visible). |
| child | `Map<String, dynamic>` | The child widget of the opacity. |

## Example JSON

```json
{
"type": "scaffold",
"appBar": {
"type": "appBar",
"title": {
"type": "text",
"data": "Opacity"
}
},
"body": {
"type": "center",
"child": {
"type": "opacity",
"opacity": 0.5,
"child": {
"type": "text",
"data": "Opacity Widget",
"style": {
"fontSize": 23,
"fontWeight": "w600"
}
}
}
}
}
```

0 comments on commit f8f2c8c

Please sign in to comment.