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,81 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Baseline"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "container",
|
19
|
+
"args": {
|
20
|
+
"alignment": "center"
|
21
|
+
},
|
22
|
+
"child": {
|
23
|
+
"type": "column",
|
24
|
+
"args": {
|
25
|
+
"mainAxisSize": "min"
|
26
|
+
},
|
27
|
+
"children": [{
|
28
|
+
"type": "container",
|
29
|
+
"args": {
|
30
|
+
"color": "#000",
|
31
|
+
"padding": [16, 0]
|
32
|
+
},
|
33
|
+
"child": {
|
34
|
+
"type": "baseline",
|
35
|
+
"args": {
|
36
|
+
"baseline": 20,
|
37
|
+
"baselineType": "alphabetic"
|
38
|
+
},
|
39
|
+
"child": {
|
40
|
+
"type": "text",
|
41
|
+
"args": {
|
42
|
+
"style": {
|
43
|
+
"color": "#fff"
|
44
|
+
},
|
45
|
+
"text": "alphabetic\nThe quick brown fox jumps over the lazy dog"
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}, {
|
50
|
+
"type": "sized_box",
|
51
|
+
"args": {
|
52
|
+
"height": 16
|
53
|
+
}
|
54
|
+
}, {
|
55
|
+
"type": "container",
|
56
|
+
"args": {
|
57
|
+
"color": "#000",
|
58
|
+
"padding": [16, 0]
|
59
|
+
},
|
60
|
+
"child": {
|
61
|
+
"type": "baseline",
|
62
|
+
"args": {
|
63
|
+
"baseline": 20,
|
64
|
+
"baselineType": "ideographic"
|
65
|
+
},
|
66
|
+
"child": {
|
67
|
+
"type": "text",
|
68
|
+
"args": {
|
69
|
+
"style": {
|
70
|
+
"color": "#fff"
|
71
|
+
},
|
72
|
+
"text": "ideographic\nThe quick brown fox jumps over the lazy dog"
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}]
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Buttons"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "column",
|
17
|
+
"children": [
|
18
|
+
{
|
19
|
+
"type": "expanded",
|
20
|
+
"child": {
|
21
|
+
"type": "center",
|
22
|
+
"child": {
|
23
|
+
"type": "elevated_button",
|
24
|
+
"args": {
|
25
|
+
"onLongPress": "${simplePrintMessage()}",
|
26
|
+
"style": {
|
27
|
+
"foregroundColor": {
|
28
|
+
"pressed": "FF2196F3",
|
29
|
+
"focused": "FF2196F3",
|
30
|
+
"empty": "FFF44336"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"child": {
|
35
|
+
"type": "text",
|
36
|
+
"args": {
|
37
|
+
"text": "ElevatedButton"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"type": "expanded",
|
45
|
+
"child": {
|
46
|
+
"type": "center",
|
47
|
+
"child": {
|
48
|
+
"type": "text_button",
|
49
|
+
"args": {
|
50
|
+
"onLongPress": "${simplePrintMessage()}",
|
51
|
+
"style": {
|
52
|
+
"foregroundColor": {
|
53
|
+
"pressed": "FF2196F3",
|
54
|
+
"focused": "FF2196F3",
|
55
|
+
"empty": "FFF44336"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"child": {
|
60
|
+
"type": "text",
|
61
|
+
"args": {
|
62
|
+
"text": "TextButton"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"type": "expanded",
|
70
|
+
"child": {
|
71
|
+
"type": "center",
|
72
|
+
"child": {
|
73
|
+
"type": "outlined_button",
|
74
|
+
"args": {
|
75
|
+
"onLongPress": "${simplePrintMessage()}",
|
76
|
+
"style": {
|
77
|
+
"foregroundColor": {
|
78
|
+
"pressed": "FF2196F3",
|
79
|
+
"focused": "FF2196F3",
|
80
|
+
"empty": "FFF44336"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"child": {
|
85
|
+
"type": "text",
|
86
|
+
"args": {
|
87
|
+
"text": "OutlinedButton"
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"type": "expanded",
|
95
|
+
"child": {
|
96
|
+
"type": "center",
|
97
|
+
"child": {
|
98
|
+
"type": "icon_button",
|
99
|
+
"args": {
|
100
|
+
"icon": {
|
101
|
+
"type": "icon",
|
102
|
+
"args": {
|
103
|
+
"icon": {
|
104
|
+
"codePoint": 58712,
|
105
|
+
"fontFamily": "MaterialIcons"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"onPressed": "${simplePrintMessage()}"
|
110
|
+
},
|
111
|
+
"child": {
|
112
|
+
"type": "text",
|
113
|
+
"args": {
|
114
|
+
"text": "OutlinedButton"
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
]
|
121
|
+
},
|
122
|
+
"floatingActionButton": {
|
123
|
+
"type": "floating_action_button",
|
124
|
+
"args": {
|
125
|
+
"onPressed": "${simplePrintMessage()}"
|
126
|
+
},
|
127
|
+
"child": {
|
128
|
+
"type": "icon",
|
129
|
+
"args": {
|
130
|
+
"icon": {
|
131
|
+
"codePoint": 57369,
|
132
|
+
"fontFamily": "MaterialIcons"
|
133
|
+
},
|
134
|
+
"size": 50
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
{
|
2
|
+
"_designCredit": "https://www.woolha.com/tutorials/flutter-card-widget-example",
|
3
|
+
"type": "theme",
|
4
|
+
"args": {
|
5
|
+
"data": {
|
6
|
+
"primaryColor": "#2c3ea4"
|
7
|
+
}
|
8
|
+
},
|
9
|
+
"child": {
|
10
|
+
"type": "scaffold",
|
11
|
+
"args": {
|
12
|
+
"appBar": {
|
13
|
+
"type": "app_bar",
|
14
|
+
"args": {
|
15
|
+
"title": {
|
16
|
+
"type": "text",
|
17
|
+
"args": {
|
18
|
+
"text": "Card"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"body": {
|
24
|
+
"type": "center",
|
25
|
+
"child": {
|
26
|
+
"type": "container",
|
27
|
+
"args": {
|
28
|
+
"width": "240"
|
29
|
+
},
|
30
|
+
"child": {
|
31
|
+
"type": "card",
|
32
|
+
"args": {
|
33
|
+
"color": "#E91E63",
|
34
|
+
"elevation": 10,
|
35
|
+
"shape": {
|
36
|
+
"type": "rounded",
|
37
|
+
"borderRadius": 15
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"child": {
|
41
|
+
"type": "column",
|
42
|
+
"args": {
|
43
|
+
"mainAxisSize": "min"
|
44
|
+
},
|
45
|
+
"children": [
|
46
|
+
{
|
47
|
+
"type": "list_tile",
|
48
|
+
"args": {
|
49
|
+
"leading": {
|
50
|
+
"type": "icon",
|
51
|
+
"args": {
|
52
|
+
"icon": {
|
53
|
+
"codePoint": 57369,
|
54
|
+
"fontFamily": "MaterialIcons"
|
55
|
+
},
|
56
|
+
"size": 70
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"title": {
|
60
|
+
"type": "text",
|
61
|
+
"args": {
|
62
|
+
"text": "Heart Shaker",
|
63
|
+
"style": {
|
64
|
+
"color": "#fff"
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"subtitle": {
|
69
|
+
"type": "text",
|
70
|
+
"args": {
|
71
|
+
"text": "TWICE",
|
72
|
+
"style": {
|
73
|
+
"color": "#fff"
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"type": "button_bar",
|
81
|
+
"children": [
|
82
|
+
{
|
83
|
+
"type": "elevated_button",
|
84
|
+
"args": {
|
85
|
+
"onPressed": "${noop()}"
|
86
|
+
},
|
87
|
+
"child": {
|
88
|
+
"type": "text",
|
89
|
+
"args": {
|
90
|
+
"text": "Edit",
|
91
|
+
"style": {
|
92
|
+
"color": "#fff"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"type": "elevated_button",
|
99
|
+
"args": {
|
100
|
+
"onPressed": "${noop()}"
|
101
|
+
},
|
102
|
+
"child": {
|
103
|
+
"type": "text",
|
104
|
+
"args": {
|
105
|
+
"text": "Delete",
|
106
|
+
"style": {
|
107
|
+
"color": "#fff"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
]
|
113
|
+
}
|
114
|
+
]
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Center"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "circular_progress_indicator",
|
19
|
+
"args": {
|
20
|
+
"valueColor": "#f00"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Checkbox"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "column",
|
19
|
+
"args": {
|
20
|
+
"mainAxisSize": "min"
|
21
|
+
},
|
22
|
+
"children": [{
|
23
|
+
"type": "row",
|
24
|
+
"args": {
|
25
|
+
"mainAxisSize": "min"
|
26
|
+
},
|
27
|
+
"children": [{
|
28
|
+
"type": "checkbox",
|
29
|
+
"args": {
|
30
|
+
"label": "Checked",
|
31
|
+
"value": true
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"type": "text",
|
35
|
+
"args": {
|
36
|
+
"text": "Checked"
|
37
|
+
}
|
38
|
+
}]
|
39
|
+
}, {
|
40
|
+
"type": "row",
|
41
|
+
"args": {
|
42
|
+
"mainAxisSize": "min"
|
43
|
+
},
|
44
|
+
"children": [{
|
45
|
+
"type": "checkbox",
|
46
|
+
"args": {
|
47
|
+
"label": "Not Checked",
|
48
|
+
"value": false
|
49
|
+
}
|
50
|
+
}, {
|
51
|
+
"type": "text",
|
52
|
+
"args": {
|
53
|
+
"text": "Not Checked"
|
54
|
+
}
|
55
|
+
}]
|
56
|
+
}, {
|
57
|
+
"type": "row",
|
58
|
+
"args": {
|
59
|
+
"mainAxisSize": "min"
|
60
|
+
},
|
61
|
+
"children": [{
|
62
|
+
"type": "checkbox",
|
63
|
+
"args": {
|
64
|
+
"enabled": false,
|
65
|
+
"label": "Disabled"
|
66
|
+
}
|
67
|
+
}, {
|
68
|
+
"type": "text",
|
69
|
+
"args": {
|
70
|
+
"text": "Disabled"
|
71
|
+
}
|
72
|
+
}]
|
73
|
+
}]
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
@@ -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": "CircularProgressIndicator"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "center",
|
17
|
+
"child": {
|
18
|
+
"type": "column",
|
19
|
+
"args": {
|
20
|
+
"mainAxisSize": "min"
|
21
|
+
},
|
22
|
+
"children": [{
|
23
|
+
"type": "circular_progress_indicator",
|
24
|
+
"args": {
|
25
|
+
"value": "0.25",
|
26
|
+
"valueColor": "#00f"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"type": "sized_box",
|
31
|
+
"args": {
|
32
|
+
"height": 16
|
33
|
+
}
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"type": "circular_progress_indicator",
|
37
|
+
"args": {
|
38
|
+
"valueColor": "#0ff"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
]
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,156 @@
|
|
1
|
+
{
|
2
|
+
"type": "scaffold",
|
3
|
+
"args": {
|
4
|
+
"appBar": {
|
5
|
+
"type": "app_bar",
|
6
|
+
"args": {
|
7
|
+
"title": {
|
8
|
+
"type": "text",
|
9
|
+
"args": {
|
10
|
+
"text": "Clips"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"body": {
|
16
|
+
"type": "list_view",
|
17
|
+
"children": [
|
18
|
+
{
|
19
|
+
"type": "list_tile",
|
20
|
+
"args": {
|
21
|
+
"title": {
|
22
|
+
"type": "center",
|
23
|
+
"child": {
|
24
|
+
"type": "text",
|
25
|
+
"args": {
|
26
|
+
"text": "ClipRect"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"type": "center",
|
34
|
+
"id": "clip_rect",
|
35
|
+
"child": {
|
36
|
+
"type": "clip_rect",
|
37
|
+
"child": {
|
38
|
+
"type": "container",
|
39
|
+
"child": {
|
40
|
+
"type": "align",
|
41
|
+
"args": {
|
42
|
+
"alignment": "topLeft",
|
43
|
+
"heightFactor": 0.75,
|
44
|
+
"widthFactor": 0.75
|
45
|
+
},
|
46
|
+
"child": {
|
47
|
+
"type": "network_image",
|
48
|
+
"args": {
|
49
|
+
"src": "https://i.ibb.co/1vXpqVs/flutter-logo.jpg"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"type": "list_tile",
|
58
|
+
"id": "clip_rrect",
|
59
|
+
"args": {
|
60
|
+
"title": {
|
61
|
+
"type": "center",
|
62
|
+
"child": {
|
63
|
+
"type": "text",
|
64
|
+
"args": {
|
65
|
+
"text": "ClipRRect"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"type": "center",
|
73
|
+
"child": {
|
74
|
+
"type": "clip_rrect",
|
75
|
+
"args": {
|
76
|
+
"borderRadius": 16.0
|
77
|
+
},
|
78
|
+
"child": {
|
79
|
+
"type": "container",
|
80
|
+
"args": {
|
81
|
+
"color": "#ff0000",
|
82
|
+
"height": 100.0,
|
83
|
+
"width": 100.0
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"type": "list_tile",
|
90
|
+
"id": "clip_oval",
|
91
|
+
"args": {
|
92
|
+
"title": {
|
93
|
+
"type": "center",
|
94
|
+
"child": {
|
95
|
+
"type": "text",
|
96
|
+
"args": {
|
97
|
+
"text": "ClipOval"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"type": "center",
|
105
|
+
"child": {
|
106
|
+
"type": "clip_oval",
|
107
|
+
"child": {
|
108
|
+
"type": "network_image",
|
109
|
+
"args": {
|
110
|
+
"src": "https://i.ibb.co/1vXpqVs/flutter-logo.jpg"
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"type": "list_tile",
|
117
|
+
"id": "clip_path",
|
118
|
+
"args": {
|
119
|
+
"title": {
|
120
|
+
"type": "center",
|
121
|
+
"child": {
|
122
|
+
"type": "text",
|
123
|
+
"args": {
|
124
|
+
"text": "ClipPath"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"type": "center",
|
132
|
+
"child": {
|
133
|
+
"type": "clip_path",
|
134
|
+
"args": {
|
135
|
+
"clipper": "${clipper}"
|
136
|
+
},
|
137
|
+
"child": {
|
138
|
+
"type": "container",
|
139
|
+
"args": {
|
140
|
+
"color": "#ff0000",
|
141
|
+
"height": 100.0,
|
142
|
+
"width": 100.0
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"type": "sized_box",
|
149
|
+
"args": {
|
150
|
+
"height": 20.0
|
151
|
+
}
|
152
|
+
}
|
153
|
+
]
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|