json_flit 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Gemfile.lock +29 -3
- data/README.md +3 -5
- data/demo/.ruby-version +1 -0
- data/demo/Gemfile +73 -0
- data/demo/Gemfile.lock +218 -0
- data/demo/Procfile.dev +3 -0
- data/demo/README.md +24 -0
- data/demo/Rakefile +6 -0
- data/demo/app/assets/builds/.keep +0 -0
- data/demo/app/assets/fonts/Lato-Regular.ttf +0 -0
- data/demo/app/assets/fonts/MetalMania-Regular.ttf +0 -0
- data/demo/app/assets/images/.keep +0 -0
- data/demo/app/assets/images/image1.jpg +0 -0
- data/demo/app/assets/images/image10.jpg +0 -0
- data/demo/app/assets/images/image11.jpg +0 -0
- data/demo/app/assets/images/image12.jpg +0 -0
- data/demo/app/assets/images/image13.jpg +0 -0
- data/demo/app/assets/images/image14.jpg +0 -0
- data/demo/app/assets/images/image15.jpg +0 -0
- data/demo/app/assets/images/image16.jpg +0 -0
- data/demo/app/assets/images/image17.jpg +0 -0
- data/demo/app/assets/images/image2.jpg +0 -0
- data/demo/app/assets/images/image3.jpg +0 -0
- data/demo/app/assets/images/image4.jpg +0 -0
- data/demo/app/assets/images/image5.jpg +0 -0
- data/demo/app/assets/images/image6.jpg +0 -0
- data/demo/app/assets/images/image7.jpg +0 -0
- data/demo/app/assets/images/image8.jpg +0 -0
- data/demo/app/assets/images/image9.jpg +0 -0
- data/demo/app/assets/images/profile.jpg +0 -0
- data/demo/app/assets/images/visa.svg +1 -0
- data/demo/app/assets/pages/align.json +182 -0
- data/demo/app/assets/pages/animated_align.json +50 -0
- data/demo/app/assets/pages/animated_container.json +56 -0
- data/demo/app/assets/pages/animated_cross_fade.json +63 -0
- data/demo/app/assets/pages/animated_default_text_style.json +53 -0
- data/demo/app/assets/pages/animated_opacity.json +49 -0
- data/demo/app/assets/pages/animated_padding.json +50 -0
- data/demo/app/assets/pages/animated_physical_model.json +73 -0
- data/demo/app/assets/pages/animated_positioned.json +54 -0
- data/demo/app/assets/pages/animated_positioned_directional.json +60 -0
- data/demo/app/assets/pages/animated_size.json +61 -0
- data/demo/app/assets/pages/animated_switcher.json +62 -0
- data/demo/app/assets/pages/animated_theme.json +52 -0
- data/demo/app/assets/pages/aspect_ratio.json +124 -0
- data/demo/app/assets/pages/asset_images.json +667 -0
- data/demo/app/assets/pages/bank_example.json +913 -0
- data/demo/app/assets/pages/baseline.json +81 -0
- data/demo/app/assets/pages/buttons.json +139 -0
- data/demo/app/assets/pages/card.json +121 -0
- data/demo/app/assets/pages/center.json +25 -0
- data/demo/app/assets/pages/checkbox.json +77 -0
- data/demo/app/assets/pages/circular_progress_indicator.json +45 -0
- data/demo/app/assets/pages/clips.json +156 -0
- data/demo/app/assets/pages/conditional.json +197 -0
- data/demo/app/assets/pages/cupertino_switch.yaml +72 -0
- data/demo/app/assets/pages/decorated_box.json +38 -0
- data/demo/app/assets/pages/directionality.json +31 -0
- data/demo/app/assets/pages/dynamic.json +299 -0
- data/demo/app/assets/pages/fitted_box.json +41 -0
- data/demo/app/assets/pages/for_each.json +130 -0
- data/demo/app/assets/pages/form.json +276 -0
- data/demo/app/assets/pages/fractional_translation.json +31 -0
- data/demo/app/assets/pages/fractionally_sized_box.json +34 -0
- data/demo/app/assets/pages/gestures.json +83 -0
- data/demo/app/assets/pages/grid_view.json +217 -0
- data/demo/app/assets/pages/image_page.json +32 -0
- data/demo/app/assets/pages/images.json +89 -0
- data/demo/app/assets/pages/indexed_stack.json +101 -0
- data/demo/app/assets/pages/input_error.json +64 -0
- data/demo/app/assets/pages/interactive_viewer.json +30 -0
- data/demo/app/assets/pages/intrinsic_height.json +63 -0
- data/demo/app/assets/pages/intrinsic_width.json +63 -0
- data/demo/app/assets/pages/issue_10.json +23 -0
- data/demo/app/assets/pages/issue_109.json +65 -0
- data/demo/app/assets/pages/issue_11.json +23 -0
- data/demo/app/assets/pages/issue_12.json +34 -0
- data/demo/app/assets/pages/issue_20_list.json +31 -0
- data/demo/app/assets/pages/issue_20_single.json +31 -0
- data/demo/app/assets/pages/issue_30.json +35 -0
- data/demo/app/assets/pages/layout_builder.json +403 -0
- data/demo/app/assets/pages/length.json +125 -0
- data/demo/app/assets/pages/limited_box.json +33 -0
- data/demo/app/assets/pages/linear_progress_indicator.json +25 -0
- data/demo/app/assets/pages/list_view.json +410 -0
- data/demo/app/assets/pages/measured.json +266 -0
- data/demo/app/assets/pages/offstage.json +50 -0
- data/demo/app/assets/pages/opacity.json +136 -0
- data/demo/app/assets/pages/overflow_box.json +52 -0
- data/demo/app/assets/pages/placeholder.json +57 -0
- data/demo/app/assets/pages/popup_menu_button.json +38 -0
- data/demo/app/assets/pages/radio.json +60 -0
- data/demo/app/assets/pages/rich_text.json +45 -0
- data/demo/app/assets/pages/scroll_view.json +974 -0
- data/demo/app/assets/pages/semantics.json +212 -0
- data/demo/app/assets/pages/set_default_value.json +77 -0
- data/demo/app/assets/pages/simple_page.json +25 -0
- data/demo/app/assets/pages/slivers.json +268 -0
- data/demo/app/assets/pages/switch.json +77 -0
- data/demo/app/assets/pages/theme.json +228 -0
- data/demo/app/assets/pages/tooltip.json +77 -0
- data/demo/app/assets/pages/tween_animation.json +43 -0
- data/demo/app/assets/pages/variables.json +64 -0
- data/demo/app/assets/pages/wrap.json +117 -0
- data/demo/app/assets/stylesheets/application.css +1 -0
- data/demo/app/assets/stylesheets/application.tailwind.css +13 -0
- data/demo/app/assets/widgets/issue_24.json +42 -0
- data/demo/app/channels/application_cable/channel.rb +4 -0
- data/demo/app/channels/application_cable/connection.rb +4 -0
- data/demo/app/controllers/application_controller.rb +2 -0
- data/demo/app/controllers/concerns/.keep +0 -0
- data/demo/app/controllers/welcome_controller.rb +22 -0
- data/demo/app/helpers/application_helper.rb +2 -0
- data/demo/app/helpers/welcome_helper.rb +2 -0
- data/demo/app/javascript/application.js +3 -0
- data/demo/app/javascript/controllers/application.js +9 -0
- data/demo/app/javascript/controllers/hello_controller.js +7 -0
- data/demo/app/javascript/controllers/index.js +8 -0
- data/demo/app/jobs/application_job.rb +7 -0
- data/demo/app/mailers/application_mailer.rb +4 -0
- data/demo/app/models/application_record.rb +3 -0
- data/demo/app/models/concerns/.keep +0 -0
- data/demo/app/views/layouts/application.html.erb +16 -0
- data/demo/app/views/layouts/mailer.html.erb +13 -0
- data/demo/app/views/layouts/mailer.text.erb +1 -0
- data/demo/app/views/welcome/index.html.erb +5 -0
- data/demo/app/views/welcome/show.html.erb +6 -0
- data/demo/bin/bundle +109 -0
- data/demo/bin/dev +8 -0
- data/demo/bin/rails +4 -0
- data/demo/bin/rake +4 -0
- data/demo/bin/setup +33 -0
- data/demo/config/application.rb +37 -0
- data/demo/config/boot.rb +4 -0
- data/demo/config/cable.yml +11 -0
- data/demo/config/credentials.yml.enc +1 -0
- data/demo/config/database.yml +25 -0
- data/demo/config/environment.rb +5 -0
- data/demo/config/environments/development.rb +68 -0
- data/demo/config/environments/production.rb +87 -0
- data/demo/config/environments/test.rb +60 -0
- data/demo/config/initializers/assets.rb +12 -0
- data/demo/config/initializers/content_security_policy.rb +25 -0
- data/demo/config/initializers/filter_parameter_logging.rb +8 -0
- data/demo/config/initializers/inflections.rb +16 -0
- data/demo/config/initializers/permissions_policy.rb +11 -0
- data/demo/config/locales/en.yml +33 -0
- data/demo/config/puma.rb +43 -0
- data/demo/config/routes.rb +5 -0
- data/demo/config/storage.yml +34 -0
- data/demo/config/tailwind.config.js +22 -0
- data/demo/config.ru +6 -0
- data/demo/db/development.sqlite3 +0 -0
- data/demo/db/seeds.rb +7 -0
- data/demo/lib/assets/.keep +0 -0
- data/demo/lib/tasks/.keep +0 -0
- data/demo/log/.keep +0 -0
- data/demo/public/404.html +67 -0
- data/demo/public/422.html +67 -0
- data/demo/public/500.html +66 -0
- data/demo/public/apple-touch-icon-precomposed.png +0 -0
- data/demo/public/apple-touch-icon.png +0 -0
- data/demo/public/favicon.ico +0 -0
- data/demo/public/robots.txt +1 -0
- data/demo/storage/.keep +0 -0
- data/demo/tmp/.keep +0 -0
- data/demo/tmp/pids/.keep +0 -0
- data/demo/tmp/storage/.keep +0 -0
- data/demo/vendor/.keep +0 -0
- data/lib/json_flit/registry.rb +144 -0
- data/lib/json_flit/version.rb +1 -1
- metadata +185 -3
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Issue 109"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "form",
|
17
|
+
"child": {
|
18
|
+
"type": "column",
|
19
|
+
"children": [
|
20
|
+
{
|
21
|
+
"type": "list_tile",
|
22
|
+
"args": {
|
23
|
+
"title": {
|
24
|
+
"type": "exclude_semantics",
|
25
|
+
"child": {
|
26
|
+
"type": "text_form_field",
|
27
|
+
"id": "ID#ORDER_NUMBER",
|
28
|
+
"args": {
|
29
|
+
"decoration": {
|
30
|
+
"labelText": "Order number"
|
31
|
+
},
|
32
|
+
"validators": [
|
33
|
+
{
|
34
|
+
"type": "required"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "outlined_button",
|
44
|
+
"id": "submit_button",
|
45
|
+
"args": {
|
46
|
+
"onPressed": "${validateForm('form_context')}"
|
47
|
+
},
|
48
|
+
"child": {
|
49
|
+
"type": "save_context",
|
50
|
+
"args": {
|
51
|
+
"key": "form_context"
|
52
|
+
},
|
53
|
+
"child": {
|
54
|
+
"type": "text",
|
55
|
+
"args": {
|
56
|
+
"text": "Submit"
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
]
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Asset Images Page"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "asset_image",
|
17
|
+
"args": {
|
18
|
+
"centerSlice": "${customRect}",
|
19
|
+
"name": "${getImageAsset(1)}"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Example"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "set_value",
|
17
|
+
"args": {
|
18
|
+
"customPadding": 16
|
19
|
+
},
|
20
|
+
"child": {
|
21
|
+
"type": "elevated_button",
|
22
|
+
"args": {
|
23
|
+
"padding": "${customPadding}"
|
24
|
+
},
|
25
|
+
"child": {
|
26
|
+
"type": "text",
|
27
|
+
"args": {
|
28
|
+
"text": "Random Text"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"type": "set_widget",
|
3
|
+
"args": {
|
4
|
+
"variableWidgetList": {
|
5
|
+
"type": "text",
|
6
|
+
"args": {
|
7
|
+
"text": "This is a text."
|
8
|
+
}
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"child": {
|
12
|
+
"type": "scaffold",
|
13
|
+
"args": {
|
14
|
+
"appBar": {
|
15
|
+
"type": "app_bar",
|
16
|
+
"args": {
|
17
|
+
"title": {
|
18
|
+
"type": "text",
|
19
|
+
"args": {
|
20
|
+
"text": "VariableWidgetList"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"body": {
|
26
|
+
"type": "list_view",
|
27
|
+
"child": "${variableWidgetList}"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"type": "set_widget",
|
3
|
+
"args": {
|
4
|
+
"variableWidget": {
|
5
|
+
"type": "text",
|
6
|
+
"args": {
|
7
|
+
"text": "This is a text."
|
8
|
+
}
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"child": {
|
12
|
+
"type": "scaffold",
|
13
|
+
"args": {
|
14
|
+
"appBar": {
|
15
|
+
"type": "app_bar",
|
16
|
+
"args": {
|
17
|
+
"title": {
|
18
|
+
"type": "text",
|
19
|
+
"args": {
|
20
|
+
"text": "VariableWidget"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"body": {
|
26
|
+
"type": "container",
|
27
|
+
"child": "${variableWidget}"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"automaticallyImplyLeading": false,
|
8
|
+
"backgroundColor": "#000000",
|
9
|
+
"elevation": 0,
|
10
|
+
"leading": {
|
11
|
+
"type": "icon_button",
|
12
|
+
"args": {
|
13
|
+
"color": "#FFFFFF",
|
14
|
+
"icon": {
|
15
|
+
"type": "icon",
|
16
|
+
"args": {
|
17
|
+
"icon": {
|
18
|
+
"codePoint": 58712,
|
19
|
+
"fontFamily": "MaterialIcons"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"onPressed": "${navigate_pop()}"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"title": {
|
27
|
+
"type": "text",
|
28
|
+
"args": {
|
29
|
+
"text": "Leading Example"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,403 @@
|
|
1
|
+
{
|
2
|
+
"type": "layout_builder",
|
3
|
+
"id": "screen",
|
4
|
+
"child": {
|
5
|
+
"type": "scaffold",
|
6
|
+
"args": {
|
7
|
+
"appBar": {
|
8
|
+
"type": "app_bar",
|
9
|
+
"args": {
|
10
|
+
"title": {
|
11
|
+
"type": "text",
|
12
|
+
"args": {
|
13
|
+
"text": "LayoutBuilder"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"body": {
|
19
|
+
"type": "layout_builder",
|
20
|
+
"id": "body",
|
21
|
+
"child": {
|
22
|
+
"type": "list_view",
|
23
|
+
"children": [
|
24
|
+
{
|
25
|
+
"type": "container",
|
26
|
+
"id": "scroll_pre_container",
|
27
|
+
"args": {
|
28
|
+
"color": "999",
|
29
|
+
"height": 100.0
|
30
|
+
},
|
31
|
+
"child": {
|
32
|
+
"type": "center",
|
33
|
+
"child": {
|
34
|
+
"type": "column",
|
35
|
+
"args": {
|
36
|
+
"mainAxisSize": "min"
|
37
|
+
},
|
38
|
+
"children": [
|
39
|
+
{
|
40
|
+
"type": "text",
|
41
|
+
"args": {
|
42
|
+
"style": {
|
43
|
+
"fontWeight": "bold"
|
44
|
+
},
|
45
|
+
"text": "pre-container"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"type": "row",
|
50
|
+
"args": {
|
51
|
+
"mainAxisSize": "min"
|
52
|
+
},
|
53
|
+
"children": [
|
54
|
+
{
|
55
|
+
"type": "text",
|
56
|
+
"args": {
|
57
|
+
"text": "("
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"type": "text",
|
62
|
+
"args": {
|
63
|
+
"text": "${container.minWidth}"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"type": "text",
|
68
|
+
"args": {
|
69
|
+
"text": " x "
|
70
|
+
}
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"type": "text",
|
74
|
+
"args": {
|
75
|
+
"text": "${container.minHeight}"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"type": "text",
|
80
|
+
"args": {
|
81
|
+
"text": ") <= ("
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"type": "text",
|
86
|
+
"args": {
|
87
|
+
"text": "${container.maxWidth}"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"type": "text",
|
92
|
+
"args": {
|
93
|
+
"text": " x "
|
94
|
+
}
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"type": "text",
|
98
|
+
"args": {
|
99
|
+
"text": "${container.maxHeight}"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"type": "text",
|
104
|
+
"args": {
|
105
|
+
"text": ")"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
]
|
109
|
+
}
|
110
|
+
]
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"type": "container",
|
116
|
+
"id": "scroll_screen",
|
117
|
+
"args": {
|
118
|
+
"color": "aaa",
|
119
|
+
"height": 100.0
|
120
|
+
},
|
121
|
+
"child": {
|
122
|
+
"type": "center",
|
123
|
+
"child": {
|
124
|
+
"type": "column",
|
125
|
+
"args": {
|
126
|
+
"mainAxisSize": "min"
|
127
|
+
},
|
128
|
+
"children": [
|
129
|
+
{
|
130
|
+
"type": "text",
|
131
|
+
"args": {
|
132
|
+
"style": {
|
133
|
+
"fontWeight": "bold"
|
134
|
+
},
|
135
|
+
"text": "screen"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"type": "row",
|
140
|
+
"args": {
|
141
|
+
"mainAxisSize": "min"
|
142
|
+
},
|
143
|
+
"children": [
|
144
|
+
{
|
145
|
+
"type": "text",
|
146
|
+
"args": {
|
147
|
+
"text": "("
|
148
|
+
}
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"type": "text",
|
152
|
+
"args": {
|
153
|
+
"text": "${screen.minWidth}"
|
154
|
+
}
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"type": "text",
|
158
|
+
"args": {
|
159
|
+
"text": " x "
|
160
|
+
}
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"type": "text",
|
164
|
+
"args": {
|
165
|
+
"text": "${screen.minHeight}"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"type": "text",
|
170
|
+
"args": {
|
171
|
+
"text": ") <= ("
|
172
|
+
}
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"type": "text",
|
176
|
+
"args": {
|
177
|
+
"text": "${screen.maxWidth}"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"type": "text",
|
182
|
+
"args": {
|
183
|
+
"text": " x "
|
184
|
+
}
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"type": "text",
|
188
|
+
"args": {
|
189
|
+
"text": "${screen.maxHeight}"
|
190
|
+
}
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"type": "text",
|
194
|
+
"args": {
|
195
|
+
"text": ")"
|
196
|
+
}
|
197
|
+
}
|
198
|
+
]
|
199
|
+
}
|
200
|
+
]
|
201
|
+
}
|
202
|
+
}
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"type": "container",
|
206
|
+
"id": "scroll_body",
|
207
|
+
"args": {
|
208
|
+
"color": "bbb",
|
209
|
+
"height": 100.0
|
210
|
+
},
|
211
|
+
"child": {
|
212
|
+
"type": "container",
|
213
|
+
"child": {
|
214
|
+
"type": "center",
|
215
|
+
"child": {
|
216
|
+
"type": "column",
|
217
|
+
"args": {
|
218
|
+
"mainAxisSize": "min"
|
219
|
+
},
|
220
|
+
"children": [
|
221
|
+
{
|
222
|
+
"type": "text",
|
223
|
+
"args": {
|
224
|
+
"style": {
|
225
|
+
"fontWeight": "bold"
|
226
|
+
},
|
227
|
+
"text": "body"
|
228
|
+
}
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"type": "row",
|
232
|
+
"args": {
|
233
|
+
"mainAxisSize": "min"
|
234
|
+
},
|
235
|
+
"children": [
|
236
|
+
{
|
237
|
+
"type": "text",
|
238
|
+
"args": {
|
239
|
+
"text": "("
|
240
|
+
}
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"type": "text",
|
244
|
+
"args": {
|
245
|
+
"text": "${body.minWidth}"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"type": "text",
|
250
|
+
"args": {
|
251
|
+
"text": " x "
|
252
|
+
}
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"type": "text",
|
256
|
+
"args": {
|
257
|
+
"text": "${body.minHeight}"
|
258
|
+
}
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"type": "text",
|
262
|
+
"args": {
|
263
|
+
"text": ") <= ("
|
264
|
+
}
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"type": "text",
|
268
|
+
"args": {
|
269
|
+
"text": "${body.maxWidth}"
|
270
|
+
}
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"type": "text",
|
274
|
+
"args": {
|
275
|
+
"text": " x "
|
276
|
+
}
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"type": "text",
|
280
|
+
"args": {
|
281
|
+
"text": "${body.maxHeight}"
|
282
|
+
}
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"type": "text",
|
286
|
+
"args": {
|
287
|
+
"text": ")"
|
288
|
+
}
|
289
|
+
}
|
290
|
+
]
|
291
|
+
}
|
292
|
+
]
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"type": "container",
|
299
|
+
"id": "scroll_container",
|
300
|
+
"args": {
|
301
|
+
"alignment": "center"
|
302
|
+
},
|
303
|
+
"child": {
|
304
|
+
"type": "container",
|
305
|
+
"args": {
|
306
|
+
"color": "ccc",
|
307
|
+
"height": 100.0,
|
308
|
+
"width": 300.0
|
309
|
+
},
|
310
|
+
"child": {
|
311
|
+
"type": "layout_builder",
|
312
|
+
"id": "container",
|
313
|
+
"child": {
|
314
|
+
"type": "center",
|
315
|
+
"child": {
|
316
|
+
"type": "column",
|
317
|
+
"args": {
|
318
|
+
"mainAxisSize": "min"
|
319
|
+
},
|
320
|
+
"children": [
|
321
|
+
{
|
322
|
+
"type": "text",
|
323
|
+
"args": {
|
324
|
+
"style": {
|
325
|
+
"fontWeight": "bold"
|
326
|
+
},
|
327
|
+
"text": "container"
|
328
|
+
}
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"type": "row",
|
332
|
+
"args": {
|
333
|
+
"mainAxisSize": "min"
|
334
|
+
},
|
335
|
+
"children": [
|
336
|
+
{
|
337
|
+
"type": "text",
|
338
|
+
"args": {
|
339
|
+
"text": "("
|
340
|
+
}
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"type": "text",
|
344
|
+
"args": {
|
345
|
+
"text": "${container.minWidth}"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"type": "text",
|
350
|
+
"args": {
|
351
|
+
"text": " x "
|
352
|
+
}
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"type": "text",
|
356
|
+
"args": {
|
357
|
+
"text": "${container.minHeight}"
|
358
|
+
}
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"type": "text",
|
362
|
+
"args": {
|
363
|
+
"text": ") <= ("
|
364
|
+
}
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"type": "text",
|
368
|
+
"args": {
|
369
|
+
"text": "${container.maxWidth}"
|
370
|
+
}
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"type": "text",
|
374
|
+
"args": {
|
375
|
+
"text": " x "
|
376
|
+
}
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"type": "text",
|
380
|
+
"args": {
|
381
|
+
"text": "${container.maxHeight}"
|
382
|
+
}
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"type": "text",
|
386
|
+
"args": {
|
387
|
+
"text": ")"
|
388
|
+
}
|
389
|
+
}
|
390
|
+
]
|
391
|
+
}
|
392
|
+
]
|
393
|
+
}
|
394
|
+
}
|
395
|
+
}
|
396
|
+
}
|
397
|
+
}
|
398
|
+
]
|
399
|
+
}
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|