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,266 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Measured"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "list_view",
|
17
|
+
"children": [
|
18
|
+
{
|
19
|
+
"type": "container",
|
20
|
+
"id": "scroll_pre_container",
|
21
|
+
"args": {
|
22
|
+
"color": "999",
|
23
|
+
"height": 100.0
|
24
|
+
},
|
25
|
+
"child": {
|
26
|
+
"type": "center",
|
27
|
+
"child": {
|
28
|
+
"type": "column",
|
29
|
+
"args": {
|
30
|
+
"mainAxisSize": "min"
|
31
|
+
},
|
32
|
+
"children": [
|
33
|
+
{
|
34
|
+
"type": "text",
|
35
|
+
"args": {
|
36
|
+
"style": {
|
37
|
+
"fontWeight": "bold"
|
38
|
+
},
|
39
|
+
"text": "pre-container"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "row",
|
44
|
+
"args": {
|
45
|
+
"mainAxisSize": "min"
|
46
|
+
},
|
47
|
+
"children": [
|
48
|
+
{
|
49
|
+
"type": "text",
|
50
|
+
"args": {
|
51
|
+
"text": "${container.width}"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"type": "text",
|
56
|
+
"args": {
|
57
|
+
"text": " x "
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"type": "text",
|
62
|
+
"args": {
|
63
|
+
"text": "${container.height}"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
]
|
67
|
+
}
|
68
|
+
]
|
69
|
+
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"type": "container",
|
74
|
+
"args": {
|
75
|
+
"color": "aaa",
|
76
|
+
"height": 100.0
|
77
|
+
},
|
78
|
+
"child": {
|
79
|
+
"type": "center",
|
80
|
+
"child": {
|
81
|
+
"type": "measured",
|
82
|
+
"id": "text",
|
83
|
+
"child": {
|
84
|
+
"type": "column",
|
85
|
+
"args": {
|
86
|
+
"mainAxisSize": "min"
|
87
|
+
},
|
88
|
+
"children": [
|
89
|
+
{
|
90
|
+
"type": "text",
|
91
|
+
"args": {
|
92
|
+
"style": {
|
93
|
+
"fontWeight": "bold"
|
94
|
+
},
|
95
|
+
"text": "text"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"type": "row",
|
100
|
+
"args": {
|
101
|
+
"mainAxisSize": "min"
|
102
|
+
},
|
103
|
+
"children": [
|
104
|
+
{
|
105
|
+
"type": "text",
|
106
|
+
"args": {
|
107
|
+
"text": "${text.width}"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"type": "text",
|
112
|
+
"args": {
|
113
|
+
"text": " x "
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"type": "text",
|
118
|
+
"args": {
|
119
|
+
"text": "${text.height}"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
]
|
123
|
+
}
|
124
|
+
]
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"type": "container",
|
131
|
+
"args": {
|
132
|
+
"color": "bbb",
|
133
|
+
"height": 100.0
|
134
|
+
},
|
135
|
+
"child": {
|
136
|
+
"type": "container",
|
137
|
+
"child": {
|
138
|
+
"type": "center",
|
139
|
+
"child": {
|
140
|
+
"type": "measured",
|
141
|
+
"id": "text_bold",
|
142
|
+
"child": {
|
143
|
+
"type": "column",
|
144
|
+
"args": {
|
145
|
+
"mainAxisSize": "min"
|
146
|
+
},
|
147
|
+
"children": [
|
148
|
+
{
|
149
|
+
"type": "text",
|
150
|
+
"args": {
|
151
|
+
"style": {
|
152
|
+
"fontWeight": "bold"
|
153
|
+
},
|
154
|
+
"text": "text_bold"
|
155
|
+
}
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"type": "row",
|
159
|
+
"args": {
|
160
|
+
"mainAxisSize": "min"
|
161
|
+
},
|
162
|
+
"children": [
|
163
|
+
{
|
164
|
+
"type": "text",
|
165
|
+
"args": {
|
166
|
+
"style": {
|
167
|
+
"fontWeight": "bold"
|
168
|
+
},
|
169
|
+
"text": "${text_bold.width}"
|
170
|
+
}
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"type": "text",
|
174
|
+
"args": {
|
175
|
+
"style": {
|
176
|
+
"fontWeight": "bold"
|
177
|
+
},
|
178
|
+
"text": " x "
|
179
|
+
}
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"type": "text",
|
183
|
+
"args": {
|
184
|
+
"style": {
|
185
|
+
"fontWeight": "bold"
|
186
|
+
},
|
187
|
+
"text": "${text_bold.height}"
|
188
|
+
}
|
189
|
+
}
|
190
|
+
]
|
191
|
+
}
|
192
|
+
]
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"type": "container",
|
200
|
+
"id": "scroll_container",
|
201
|
+
"args": {
|
202
|
+
"alignment": "center"
|
203
|
+
},
|
204
|
+
"child": {
|
205
|
+
"type": "container",
|
206
|
+
"args": {
|
207
|
+
"color": "ccc",
|
208
|
+
"height": 100.0,
|
209
|
+
"width": 300.0
|
210
|
+
},
|
211
|
+
"child": {
|
212
|
+
"type": "measured",
|
213
|
+
"id": "container",
|
214
|
+
"child": {
|
215
|
+
"type": "center",
|
216
|
+
"child": {
|
217
|
+
"type": "column",
|
218
|
+
"args": {
|
219
|
+
"mainAxisSize": "min"
|
220
|
+
},
|
221
|
+
"children": [
|
222
|
+
{
|
223
|
+
"type": "text",
|
224
|
+
"args": {
|
225
|
+
"style": {
|
226
|
+
"fontWeight": "bold"
|
227
|
+
},
|
228
|
+
"text": "container"
|
229
|
+
}
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"type": "row",
|
233
|
+
"args": {
|
234
|
+
"mainAxisSize": "min"
|
235
|
+
},
|
236
|
+
"children": [
|
237
|
+
{
|
238
|
+
"type": "text",
|
239
|
+
"args": {
|
240
|
+
"text": "${container.width}"
|
241
|
+
}
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"type": "text",
|
245
|
+
"args": {
|
246
|
+
"text": " x "
|
247
|
+
}
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"type": "text",
|
251
|
+
"args": {
|
252
|
+
"text": "${container.height}"
|
253
|
+
}
|
254
|
+
}
|
255
|
+
]
|
256
|
+
}
|
257
|
+
]
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
]
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Offstage"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "set_value",
|
17
|
+
"args": {
|
18
|
+
"visible": false
|
19
|
+
},
|
20
|
+
"child": {
|
21
|
+
"type": "offstage",
|
22
|
+
"args": {
|
23
|
+
"offstage": "${visible}"
|
24
|
+
},
|
25
|
+
"child": {
|
26
|
+
"type": "text",
|
27
|
+
"args": {
|
28
|
+
"text": "This is a visible text"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"floatingActionButton": {
|
34
|
+
"type": "floating_action_button",
|
35
|
+
"args": {
|
36
|
+
"onPressed": "${negateBool('visible')}"
|
37
|
+
},
|
38
|
+
"child": {
|
39
|
+
"type": "icon",
|
40
|
+
"args": {
|
41
|
+
"icon": {
|
42
|
+
"codePoint": 57369,
|
43
|
+
"fontFamily": "MaterialIcons"
|
44
|
+
},
|
45
|
+
"size": 50
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Opacity"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "column",
|
19
|
+
"args": {
|
20
|
+
"mainAxisSize": "min"
|
21
|
+
},
|
22
|
+
"children": [{
|
23
|
+
"type": "opacity",
|
24
|
+
"args": {
|
25
|
+
"opacity": "0.1"
|
26
|
+
},
|
27
|
+
"child": {
|
28
|
+
"type": "text",
|
29
|
+
"args": {
|
30
|
+
"text": "0.1"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"type": "opacity",
|
35
|
+
"args": {
|
36
|
+
"opacity": "0.2"
|
37
|
+
},
|
38
|
+
"child": {
|
39
|
+
"type": "text",
|
40
|
+
"args": {
|
41
|
+
"text": "0.2"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}, {
|
45
|
+
"type": "opacity",
|
46
|
+
"args": {
|
47
|
+
"opacity": "0.3"
|
48
|
+
},
|
49
|
+
"child": {
|
50
|
+
"type": "text",
|
51
|
+
"args": {
|
52
|
+
"text": "0.3"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}, {
|
56
|
+
"type": "opacity",
|
57
|
+
"args": {
|
58
|
+
"opacity": "0.4"
|
59
|
+
},
|
60
|
+
"child": {
|
61
|
+
"type": "text",
|
62
|
+
"args": {
|
63
|
+
"text": "0.4"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}, {
|
67
|
+
"type": "opacity",
|
68
|
+
"args": {
|
69
|
+
"opacity": "0.5"
|
70
|
+
},
|
71
|
+
"child": {
|
72
|
+
"type": "text",
|
73
|
+
"args": {
|
74
|
+
"text": "0.5"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}, {
|
78
|
+
"type": "opacity",
|
79
|
+
"args": {
|
80
|
+
"opacity": "0.6"
|
81
|
+
},
|
82
|
+
"child": {
|
83
|
+
"type": "text",
|
84
|
+
"args": {
|
85
|
+
"text": "0.6"
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}, {
|
89
|
+
"type": "opacity",
|
90
|
+
"args": {
|
91
|
+
"opacity": "0.7"
|
92
|
+
},
|
93
|
+
"child": {
|
94
|
+
"type": "text",
|
95
|
+
"args": {
|
96
|
+
"text": "0.7"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}, {
|
100
|
+
"type": "opacity",
|
101
|
+
"args": {
|
102
|
+
"opacity": "0.8"
|
103
|
+
},
|
104
|
+
"child": {
|
105
|
+
"type": "text",
|
106
|
+
"args": {
|
107
|
+
"text": "0.8"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}, {
|
111
|
+
"type": "opacity",
|
112
|
+
"args": {
|
113
|
+
"opacity": "0.9"
|
114
|
+
},
|
115
|
+
"child": {
|
116
|
+
"type": "text",
|
117
|
+
"args": {
|
118
|
+
"text": "0.9"
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}, {
|
122
|
+
"type": "opacity",
|
123
|
+
"args": {
|
124
|
+
"opacity": "1.0"
|
125
|
+
},
|
126
|
+
"child": {
|
127
|
+
"type": "text",
|
128
|
+
"args": {
|
129
|
+
"text": "1.0"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}]
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "OverflowBox"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "container",
|
17
|
+
"args": {
|
18
|
+
"color": "#FF0000",
|
19
|
+
"height": 200.0,
|
20
|
+
"width": 200.0
|
21
|
+
},
|
22
|
+
"child": {
|
23
|
+
"type": "align",
|
24
|
+
"args": {
|
25
|
+
"alignment": "bottomRight"
|
26
|
+
},
|
27
|
+
"child": {
|
28
|
+
"type": "sized_box",
|
29
|
+
"args": {
|
30
|
+
"height": 10.0,
|
31
|
+
"width": 20.0
|
32
|
+
},
|
33
|
+
"child": {
|
34
|
+
"type": "overflow_box",
|
35
|
+
"args": {
|
36
|
+
"minWidth": 0.0,
|
37
|
+
"maxWidth": 100.0,
|
38
|
+
"minHeight": 0.0,
|
39
|
+
"maxHeight": 50.0
|
40
|
+
},
|
41
|
+
"child": {
|
42
|
+
"type": "container",
|
43
|
+
"args": {
|
44
|
+
"color": "#000"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Placeholder"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "intrinsic_width",
|
17
|
+
"child": {
|
18
|
+
"type": "column",
|
19
|
+
"args": {
|
20
|
+
"crossAxisAlignment": "stretch"
|
21
|
+
},
|
22
|
+
"children": [
|
23
|
+
{
|
24
|
+
"type": "elevated_button",
|
25
|
+
"args": {
|
26
|
+
"onPressed": "${simplePrintMessage()}"
|
27
|
+
},
|
28
|
+
"child": {
|
29
|
+
"type": "text",
|
30
|
+
"args": {
|
31
|
+
"text": "Short"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"type": "placeholder",
|
37
|
+
"args": {
|
38
|
+
"fallbackHeight": 100
|
39
|
+
}
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"type": "elevated_button",
|
43
|
+
"args": {
|
44
|
+
"onPressed": "${simplePrintMessage()}"
|
45
|
+
},
|
46
|
+
"child": {
|
47
|
+
"type": "text",
|
48
|
+
"args": {
|
49
|
+
"text": "The Longest text button"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
]
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"actions": [
|
8
|
+
{
|
9
|
+
"type": "popup_menu_button",
|
10
|
+
"args": {
|
11
|
+
"itemBuilder": "${buildPopupMenu()}",
|
12
|
+
"onCanceled": "${simplePrintMessage('CANCELED')}"
|
13
|
+
},
|
14
|
+
"child": {
|
15
|
+
"type": "icon",
|
16
|
+
"args": {
|
17
|
+
"icon": {
|
18
|
+
"codePoint": 57369,
|
19
|
+
"fontFamily": "MaterialIcons"
|
20
|
+
},
|
21
|
+
"size": 50
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"title": {
|
27
|
+
"type": "text",
|
28
|
+
"args": {
|
29
|
+
"text": "PopupMenuButton"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"body": {
|
35
|
+
"type": "container"
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Test"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "set_value",
|
17
|
+
"args": {
|
18
|
+
"radioGroupValue": "radioValue1"
|
19
|
+
},
|
20
|
+
"child": {
|
21
|
+
"type": "column",
|
22
|
+
"children": [
|
23
|
+
{
|
24
|
+
"type": "text",
|
25
|
+
"args": {
|
26
|
+
"text": "${'Selected radio group value: ' + radioGroupValue ?? ''}"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"type": "radio",
|
31
|
+
"args": {
|
32
|
+
"groupValue": "${radioGroupValue}",
|
33
|
+
"id": "radioGroupValue",
|
34
|
+
"value": "radioValue1"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"type": "radio",
|
39
|
+
"args": {
|
40
|
+
"groupValue": "${radioGroupValue}",
|
41
|
+
"id": "radioGroupValue",
|
42
|
+
"value": "radioValue2"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"type": "radio",
|
47
|
+
"args": {
|
48
|
+
"groupValue": "${radioGroupValue}",
|
49
|
+
"id": "radioGroupValue",
|
50
|
+
"value": "radioValue3"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"args": {
|
55
|
+
"crossAxisAlignment": "start"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Rich Text"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "rich_text",
|
19
|
+
"args": {
|
20
|
+
"text": {
|
21
|
+
"children": [
|
22
|
+
{
|
23
|
+
"text": "Hello "
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"style": {
|
27
|
+
"fontSize": 20.0,
|
28
|
+
"fontWeight": "bold"
|
29
|
+
},
|
30
|
+
"text": "RICH TEXT"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"text": " World!"
|
34
|
+
}
|
35
|
+
],
|
36
|
+
"style": {
|
37
|
+
"color": "#000000",
|
38
|
+
"fontSize": 12.0
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|