-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add mirai opacity widget markdown
- Loading branch information
1 parent
7241fcb
commit f8f2c8c
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |