File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ # Flexible
2+
3+ The Mirai Flexible allows you to build a Flutter flexible widget using JSON.
4+ To know more about the flexible widget in Flutter, refer to the [ official documentation] ( https://api.flutter.dev/flutter/widgets/Flexible-class.html ) .
5+
6+ ## Properties
7+
8+ | Property | Type | Description |
9+ | ----------| -------------------------| ------------------------------------------------------------------------------------------|
10+ | child | ` Map<String, dynamic>? ` | The widget to display inside the flexible widget. |
11+ | flex | ` int ` | The flex factor to use for the flexible widget. Defaults to ` 1 ` . |
12+ | fit | ` FlexFit ` | How the child should be inscribed into the available space. Defaults to ` FlexFit.loose ` . |
13+
14+ ## Example JSON
15+
16+ ``` json
17+ {
18+ "type" : " flexible" ,
19+ "flex" : 2 ,
20+ "fit" : " tight" ,
21+ "child" : {
22+ "type" : " text" ,
23+ "data" : " Hello, World!"
24+ }
25+ }
26+ ```
You can’t perform that action at this time.
0 commit comments