1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
#![allow(unused_variables)]
#![allow(dead_code)]
use std::{cell::RefCell, rc::Rc};
mod about_list_tile;
pub use self::about_list_tile::*;
mod action_chip;
pub use self::action_chip::*;
mod alert_dialog;
pub use self::alert_dialog::*;
mod align;
pub use self::align::*;
mod app_bar;
pub use self::app_bar::*;
mod back_button;
pub use self::back_button::*;
mod bottom_app_bar;
pub use self::bottom_app_bar::*;
mod bottom_navigation_bar;
pub use self::bottom_navigation_bar::*;
mod bottom_sheet;
pub use self::bottom_sheet::*;
mod button_bar;
pub use self::button_bar::*;
mod button_style_button;
pub use self::button_style_button::*;
mod button;
pub use self::button::*;
mod canvas;
pub use self::canvas::*;
mod card;
pub use self::card::*;
mod center;
pub use self::center::*;
mod checkbox;
pub use self::checkbox::*;
mod chip;
pub use self::chip::*;
mod choice_chip;
pub use self::choice_chip::*;
mod circle_avatar;
pub use self::circle_avatar::*;
mod circular_progress_indicator;
pub use self::circular_progress_indicator::*;
mod clip_oval;
pub use self::clip_oval::*;
mod clip_path;
pub use self::clip_path::*;
mod close_button;
pub use self::close_button::*;
mod column;
pub use self::column::*;
mod container;
pub use self::container::*;
mod custom_paint;
pub use self::custom_paint::*;
mod custom_scroll_view;
pub use self::custom_scroll_view::*;
mod data_table;
pub use self::data_table::*;
mod divider;
pub use self::divider::*;
mod drawer;
pub use self::drawer::*;
mod dropdown_button;
pub use self::dropdown_button::*;
mod element;
pub use self::element::*;
mod elevated_button;
pub use self::elevated_button::*;
mod expanded;
pub use self::expanded::*;
mod expansion_panel;
pub use self::expansion_panel::*;
mod filter_chip;
pub use self::filter_chip::*;
mod fitted_box;
pub use self::fitted_box::*;
mod flat_button;
pub use self::flat_button::*;
mod flexible_space_bar;
pub use self::flexible_space_bar::*;
mod flexible;
pub use self::flexible::*;
mod floating_action_button;
pub use self::floating_action_button::*;
mod flow;
pub use self::flow::*;
mod form;
pub use self::form::*;
mod gesture_detector;
pub use self::gesture_detector::*;
mod grid_view;
pub use self::grid_view::*;
mod icon_button;
pub use self::icon_button::*;
mod icon;
pub use self::icon::*;
mod image_icon;
pub use self::image_icon::*;
mod image;
pub use self::image::*;
mod ink_well;
pub use self::ink_well::*;
mod ink;
pub use self::ink::*;
mod input_chip;
pub use self::input_chip::*;
mod label;
pub use self::label::*;
mod linear_progress_indicator;
pub use self::linear_progress_indicator::*;
mod list_tile;
pub use self::list_tile::*;
mod list_view;
pub use self::list_view::*;
mod list;
pub use self::list::*;
mod material_app;
pub use self::material_app::*;
mod material_button;
pub use self::material_button::*;
mod material;
pub use self::material::*;
mod media_query;
pub use self::media_query::*;
mod modal_bottom_sheet;
pub use self::modal_bottom_sheet::*;
mod navigation_rail_destination;
pub use self::navigation_rail_destination::*;
mod navigation_rail;
pub use self::navigation_rail::*;
mod navigation_toolbar;
pub use self::navigation_toolbar::*;
mod offstage;
pub use self::offstage::*;
mod opacity;
pub use self::opacity::*;
mod outline_button;
pub use self::outline_button::*;
mod outlined_button;
pub use self::outlined_button::*;
mod panel;
pub use self::panel::*;
mod placeholder;
pub use self::placeholder::*;
mod popup_menu_button;
pub use self::popup_menu_button::*;
mod positioned;
pub use self::positioned::*;
mod preferred_size;
pub use self::preferred_size::*;
mod progress;
pub use self::progress::*;
mod radio;
pub use self::radio::*;
mod raised_button;
pub use self::raised_button::*;
mod raw_chip;
pub use self::raw_chip::*;
mod raw_material_button;
pub use self::raw_material_button::*;
mod refresh_indicator;
pub use self::refresh_indicator::*;
mod rich_text;
pub use self::rich_text::*;
mod row;
pub use self::row::*;
mod rust_logo;
pub use self::rust_logo::*;
mod safe_area;
pub use self::safe_area::*;
mod scaffold;
pub use self::scaffold::*;
mod scroll_view;
pub use self::scroll_view::*;
mod scrollable;
pub use self::scrollable::*;
mod simple_dialog;
pub use self::simple_dialog::*;
mod single_child_scroll_view;
pub use self::single_child_scroll_view::*;
mod sized_box;
pub use self::sized_box::*;
mod slider;
pub use self::slider::*;
mod sliver_app_bar;
pub use self::sliver_app_bar::*;
mod sliver_grid;
pub use self::sliver_grid::*;
mod sliver_list;
pub use self::sliver_list::*;
mod snack_bar;
pub use self::snack_bar::*;
mod stack;
pub use self::stack::*;
mod step;
pub use self::step::*;
mod stepper;
pub use self::stepper::*;
mod switch;
pub use self::switch::*;
mod tab_bar_view;
pub use self::tab_bar_view::*;
mod tab_bar;
pub use self::tab_bar::*;
mod tab_page_selector;
pub use self::tab_page_selector::*;
mod text_button;
pub use self::text_button::*;
mod text_field;
pub use self::text_field::*;
mod text;
pub use self::text::*;
mod textedit;
pub use self::textedit::*;
mod theme;
pub use self::theme::*;
mod toggle_buttons;
pub use self::toggle_buttons::*;
mod transform;
pub use self::transform::*;
mod user_accounts_drawer_header;
pub use self::user_accounts_drawer_header::*;
mod vertical_divider;
pub use self::vertical_divider::*;
mod widget_component;
pub use self::widget_component::*;
mod widgets_app;
pub use self::widgets_app::*;
mod window;
pub use self::window::*;
mod wrap;
pub use self::wrap::*;
#[derive(Default)]
pub struct NoneElement {
pub component: Rc<RefCell<WidgetComponent>>,
}
impl Element for NoneElement {
fn render(&self) {}
}
impl AsRef<RefCell<WidgetComponent>> for NoneElement {
fn as_ref(&self) -> &RefCell<WidgetComponent> {
self.component.as_ref()
}
}