-
Notifications
You must be signed in to change notification settings - Fork 36
/
flutter_eval.dart
585 lines (565 loc) · 28.1 KB
/
flutter_eval.dart
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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
/// Provides a bridge between the Flutter framework and the dart_eval library,
/// as well as helper classes to enable code-push and server-driven UI.
library flutter_eval;
export 'src/flutter_eval.dart';
import 'package:dart_eval/dart_eval.dart';
import 'package:dart_eval/dart_eval_bridge.dart';
import 'package:flutter_eval/src/animation.dart';
import 'package:flutter_eval/src/animation/animation.dart';
import 'package:flutter_eval/src/animation/animation_controller.dart';
import 'package:flutter_eval/src/animation/curves.dart';
import 'package:flutter_eval/src/foundation.dart';
import 'package:flutter_eval/src/foundation/change_notifier.dart';
import 'package:flutter_eval/src/foundation/key.dart';
import 'package:flutter_eval/src/gestures.dart';
import 'package:flutter_eval/src/gestures/drag_details.dart';
import 'package:flutter_eval/src/gestures/long_press.dart';
import 'package:flutter_eval/src/gestures/tap.dart';
import 'package:flutter_eval/src/gestures/velocity_tracker.dart';
import 'package:flutter_eval/src/material.dart';
import 'package:flutter_eval/src/material/app.dart';
import 'package:flutter_eval/src/material/app_bar.dart';
import 'package:flutter_eval/src/material/card.dart';
import 'package:flutter_eval/src/material/colors.dart';
import 'package:flutter_eval/src/material/drawer.dart';
import 'package:flutter_eval/src/material/elevated_button.dart';
import 'package:flutter_eval/src/material/floating_action_button.dart';
import 'package:flutter_eval/src/material/icon_button.dart';
import 'package:flutter_eval/src/material/icons.dart';
import 'package:flutter_eval/src/material/ink_well.dart';
import 'package:flutter_eval/src/material/list_tile.dart';
import 'package:flutter_eval/src/material/page.dart';
import 'package:flutter_eval/src/material/scaffold.dart';
import 'package:flutter_eval/src/material/snack_bar.dart';
import 'package:flutter_eval/src/material/text_button.dart';
import 'package:flutter_eval/src/material/text_field.dart';
import 'package:flutter_eval/src/material/text_theme.dart';
import 'package:flutter_eval/src/material/theme.dart';
import 'package:flutter_eval/src/material/theme_data.dart';
import 'package:flutter_eval/src/painting.dart';
import 'package:flutter_eval/src/painting/alignment.dart';
import 'package:flutter_eval/src/painting/basic_types.dart';
import 'package:flutter_eval/src/painting/border_radius.dart';
import 'package:flutter_eval/src/painting/borders.dart';
import 'package:flutter_eval/src/painting/box_border.dart';
import 'package:flutter_eval/src/painting/box_decoration.dart';
import 'package:flutter_eval/src/painting/box_fit.dart';
import 'package:flutter_eval/src/painting/colors.dart';
import 'package:flutter_eval/src/painting/decoration.dart';
import 'package:flutter_eval/src/painting/edge_insets.dart';
import 'package:flutter_eval/src/painting/image_provider.dart';
import 'package:flutter_eval/src/painting/text_style.dart';
import 'package:flutter_eval/src/rendering.dart';
import 'package:flutter_eval/src/rendering/box.dart';
import 'package:flutter_eval/src/rendering/flex.dart';
import 'package:flutter_eval/src/rendering/object.dart';
import 'package:flutter_eval/src/rendering/proxy_box.dart';
import 'package:flutter_eval/src/rendering/stack.dart';
import 'package:flutter_eval/src/scheduler.dart';
import 'package:flutter_eval/src/scheduler/ticker.dart';
import 'package:flutter_eval/src/services.dart';
import 'package:flutter_eval/src/services/binary_messenger.dart';
import 'package:flutter_eval/src/services/message_codec.dart';
import 'package:flutter_eval/src/services/platform_channel.dart';
import 'package:flutter_eval/src/sky_engine/ui/geometry.dart';
import 'package:flutter_eval/src/sky_engine/ui/image.dart';
import 'package:flutter_eval/src/sky_engine/ui/painting.dart';
import 'package:flutter_eval/src/sky_engine/ui/pointer.dart';
import 'package:flutter_eval/src/sky_engine/ui/text.dart';
import 'package:flutter_eval/src/sky_engine/ui/ui.dart';
import 'package:flutter_eval/src/widgets.dart';
import 'package:flutter_eval/src/widgets/app.dart';
import 'package:flutter_eval/src/widgets/basic.dart';
import 'package:flutter_eval/src/widgets/container.dart';
import 'package:flutter_eval/src/widgets/editable_text.dart';
import 'package:flutter_eval/src/widgets/framework.dart';
import 'package:flutter_eval/src/widgets/gesture_detector.dart';
import 'package:flutter_eval/src/widgets/icon.dart';
import 'package:flutter_eval/src/widgets/icon_data.dart';
import 'package:flutter_eval/src/widgets/image.dart';
import 'package:flutter_eval/src/widgets/navigator.dart';
import 'package:flutter_eval/src/widgets/overlay.dart';
import 'package:flutter_eval/src/widgets/pages.dart';
import 'package:flutter_eval/src/widgets/routes.dart';
import 'package:flutter_eval/src/widgets/scroll_controller.dart';
import 'package:flutter_eval/src/widgets/scroll_view.dart';
import 'package:flutter_eval/src/widgets/spacer.dart';
import 'package:flutter_eval/src/widgets/text.dart';
/// Global instance of [FlutterEvalPlugin]
const flutterEvalPlugin = FlutterEvalPlugin();
/// Setup flutter_eval classes for use in a dart_eval [Compiler].
@Deprecated("Use compiler.addPlugin(flutterEvalPlugin) instead.")
void setupFlutterForCompile(EvalPluginRegistry registry) {
registry.addPlugin(flutterEvalPlugin);
}
/// Setup Flutter classes for use in a dart_eval [Runtime]. After
/// calling this function, you must call `runtime.setup()`.
@Deprecated("Use runtime.addPlugin(flutterEvalPlugin) instead.")
void setupFlutterForRuntime(Runtime runtime) {
runtime.addPlugin(flutterEvalPlugin);
}
/// A [EvalPlugin] for dart_eval that provides Flutter classes.
class FlutterEvalPlugin implements EvalPlugin {
const FlutterEvalPlugin();
@override
String get identifier => 'package:flutter';
@override
void configureForCompile(BridgeDeclarationRegistry registry) {
final classes = [
$Widget.$declaration,
$StatelessWidget$bridge.$declaration,
$StatefulWidget$bridge.$declaration,
$Listenable.$declaration,
$ValueListenable.$declaration,
$Ticker.$declaration,
$TickerProvider.$declaration,
$TickerFuture.$declaration,
$ChangeNotifier$bridge.$declaration,
$State$bridge.$declaration,
$BuildContext.$declaration,
$Text.$declaration,
$Container.$declaration,
$Key.$declaration,
$Color.$declaration,
$EdgeInsetsGeometry.$declaration,
$EdgeInsets.$declaration,
$ColorSwatch.$declaration,
$WidgetsApp.$declaration,
$MaterialApp.$declaration,
$MaterialColor.$declaration,
$MaterialAccentColor.$declaration,
$Scaffold.$declaration,
$AppBar.$declaration,
$Padding.$declaration,
$Row.$declaration,
$Center.$declaration,
$Column.$declaration,
$FloatingActionButton.$declaration,
$Navigator.$declaration,
$NavigatorState.$declaration,
$TextEditingController.$declaration,
$TextField.$declaration,
$ScaffoldMessenger.$declaration,
$ScaffoldMessengerState.$declaration,
$SnackBar.$declaration,
$TextStyle.$declaration,
$TextTheme.$declaration,
$IconButton.$declaration,
$TextButton.$declaration,
$ThemeData.$declaration,
$Theme.$declaration,
$ElevatedButton.$declaration,
$Builder.$declaration,
$AlignmentGeometry.$declaration,
$Alignment.$declaration,
$Constraints.$declaration,
$BoxConstraints.$declaration,
$ParametricCurve.$declaration,
$Curve.$declaration,
$_Linear.$declaration,
$SawTooth.$declaration,
$Interval.$declaration,
$Threshold.$declaration,
$Cubic.$declaration,
$_DecelerateCurve.$declaration,
$ElasticInCurve.$declaration,
$ElasticOutCurve.$declaration,
$ElasticInOutCurve.$declaration,
$Size.$declaration,
$IconData.$declaration,
$Icon.$declaration,
$Spacer.$declaration,
$Decoration.$declaration,
$BoxDecoration.$declaration,
$BorderSide.$declaration,
$BoxBorder.$declaration,
$Border.$declaration,
$InkWell.$declaration,
$ListView.$declaration,
$ScrollController.$declaration,
$Card.$declaration,
$Drawer.$declaration,
$ListTile.$declaration,
$Image.$declaration,
$ImageProvider.$declaration,
$NetworkImage.$declaration,
$MemoryImage.$declaration,
$ResizeImage.$declaration,
$Offset.$declaration,
$Velocity.$declaration,
$GestureDetector.$declaration,
$TapDownDetails.$declaration,
$TapUpDetails.$declaration,
$LongPressStartDetails.$declaration,
$LongPressMoveUpdateDetails.$declaration,
$LongPressEndDetails.$declaration,
$DragStartDetails.$declaration,
$DragUpdateDetails.$declaration,
$DragEndDetails.$declaration,
$DragDownDetails.$declaration,
$BinaryMessenger.$declaration,
$MethodCodec.$declaration,
$MethodChannel.$declaration,
$MethodCall.$declaration,
$Alignment.$declaration,
$AspectRatio.$declaration,
$Align.$declaration,
$Radius.$declaration,
$BorderRadiusGeometry.$declaration,
$BorderRadius.$declaration,
$Baseline.$declaration,
$ClipRRect.$declaration,
$ColoredBox.$declaration,
$Directionality.$declaration,
$Expanded.$declaration,
$FittedBox.$declaration,
$FractionallySizedBox.$declaration,
$Stack.$declaration,
$Positioned.$declaration,
$SizedBox.$declaration,
$OverlayEntry.$declaration,
$Animation.$declaration,
$AnimationController.$declaration,
$Route.$declaration,
$OverlayRoute.$declaration,
$TransitionRoute.$declaration,
$PageRoute$bridge.$declaration,
$MaterialPageRoute.$declaration,
$RouteSettings.$declaration,
];
for (final cls in classes) {
registry.defineBridgeClass(cls);
}
registry.defineBridgeEnum($MainAxisAlignment.$declaration);
registry.defineBridgeEnum($CrossAxisAlignment.$declaration);
registry.defineBridgeEnum($MainAxisSize.$declaration);
registry.defineBridgeEnum($FontWeight.$declaration);
registry.defineBridgeEnum($FontStyle.$declaration);
registry.defineBridgeEnum($TextDirection.$declaration);
registry.defineBridgeEnum($VerticalDirection.$declaration);
registry.defineBridgeEnum($TextBaseline.$declaration);
registry.defineBridgeEnum($Axis.$declaration);
registry.defineBridgeEnum($BorderStyle.$declaration);
registry.defineBridgeEnum($BoxFit.$declaration);
registry.defineBridgeEnum($FilterQuality.$declaration);
registry.defineBridgeEnum($PointerDeviceKind.$declaration);
registry.defineBridgeEnum($HitTestBehavior.$declaration);
registry.defineBridgeEnum($Clip.$declaration);
registry.defineBridgeEnum($StackFit.$declaration);
registry.defineBridgeEnum($AnimationStatus.$declaration);
registry.addSource(DartSource('dart:ui', dartUiSource));
registry.addSource(
DartSource('package:flutter/animation.dart', animationSource));
registry.addSource(DartSource(
'package:flutter/src/animation/animation_controller.dart',
animationControllerSource));
registry.addSource(DartSource(
'package:flutter/src/animation/curves.dart', animationCurvesSource));
registry.addSource(
DartSource('package:flutter/foundation.dart', foundationSource));
registry
.addSource(DartSource('package:flutter/gestures.dart', gesturesSource));
registry.addSource(DartSource(
'package:flutter/src/widgets/gesture_detector.dart',
gestureDetectorSource));
registry
.addSource(DartSource('package:flutter/material.dart', materialSource));
registry.addSource(DartSource(
'package:flutter/src/material/colors.dart', materialColorsSource));
registry.addSource(DartSource(
'package:flutter/src/material/icons.dart', materialIconsSource));
registry
.addSource(DartSource('package:flutter/painting.dart', paintingSource));
registry.addSource(DartSource(
'package:flutter/src/painting/basic_types.dart',
paintingBasicTypesSource));
registry.addSource(
DartSource('package:flutter/rendering.dart', renderingSource));
registry.addSource(
DartSource('package:flutter/scheduler.dart', schedulerSource));
registry
.addSource(DartSource('package:flutter/services.dart', servicesSource));
registry
.addSource(DartSource('package:flutter/widgets.dart', widgetsSource));
registry.addSource(DartSource(
'package:flutter/src/widgets/framework.dart', widgetsFrameworkSource));
registry.addSource(DartSource(
'package:flutter/src/widgets/basic.dart', widgetsBasicSource));
}
@override
void configureForRuntime(Runtime runtime) {
runtime
..registerBridgeFunc('dart:ui', 'Color.', $Color.$new)
..registerBridgeFunc('dart:ui', 'Size.', $Size.$new)
..registerBridgeFunc('dart:ui', 'Offset.', $Offset.$new)
..registerBridgeFunc('dart:ui', 'Radius.circular', $Radius.$circular)
..registerBridgeFunc('dart:ui', 'Radius.elliptical', $Radius.$elliptical)
..registerBridgeFunc(
'package:flutter/src/foundation/change_notifier.dart',
'ChangeNotifier.',
$ChangeNotifier$bridge.$new,
isBridge: true)
..registerBridgeFunc('package:flutter/src/widgets/framework.dart',
'StatelessWidget.', $StatelessWidget$bridge.$new,
isBridge: true)
..registerBridgeFunc('package:flutter/src/widgets/framework.dart',
'StatefulWidget.', $StatefulWidget$bridge.$new,
isBridge: true)
..registerBridgeFunc('package:flutter/src/widgets/framework.dart',
'State.', $State$bridge.$new,
isBridge: true)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.', $Alignment.$new)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.topLeft*g', $Alignment.$topLeft)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.topCenter*g', $Alignment.$topCenter)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.topRight*g', $Alignment.$topRight)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.centerLeft*g', $Alignment.$centerLeft)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.center*g', $Alignment.$center)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.centerRight*g', $Alignment.$centerRight)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.bottomLeft*g', $Alignment.$bottomLeft)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.bottomCenter*g', $Alignment.$bottomCenter)
..registerBridgeFunc('package:flutter/src/painting/alignment.dart',
'Alignment.bottomRight*g', $Alignment.$bottomRight)
..registerBridgeFunc('package:flutter/src/painting/edge_insets.dart',
'EdgeInsets.fromLTRB', $EdgeInsets.$fromLTRB)
..registerBridgeFunc('package:flutter/src/painting/edge_insets.dart',
'EdgeInsets.all', $EdgeInsets.$all)
..registerBridgeFunc('package:flutter/src/painting/edge_insets.dart',
'EdgeInsets.only', $EdgeInsets.$only)
..registerBridgeFunc('package:flutter/src/painting/borders.dart',
'BorderSide.', $BorderSide.$new)
..registerBridgeFunc('package:flutter/src/painting/box_border.dart',
'Border.', $Border.$new)
..registerBridgeFunc('package:flutter/src/painting/box_border.dart',
'Border.all', $Border.$all)
..registerBridgeFunc('package:flutter/src/painting/box_border.dart',
'Border.fromBorderSide', $Border.$fromBorderSide)
..registerBridgeFunc('package:flutter/src/painting/box_border.dart',
'Border.symmetric', $Border.$symmetric)
..registerBridgeFunc('package:flutter/src/painting/box_decoration.dart',
'BoxDecoration.', $BoxDecoration.$new)
..registerBridgeFunc('package:flutter/src/painting/border_radius.dart',
'BorderRadius.all', $BorderRadius.$all)
..registerBridgeFunc('package:flutter/src/painting/border_radius.dart',
'BorderRadius.only', $BorderRadius.$only)
..registerBridgeFunc('package:flutter/src/painting/border_radius.dart',
'BorderRadius.circular', $BorderRadius.$circular)
..registerBridgeFunc('package:flutter/src/painting/border_radius.dart',
'BorderRadius.vertical', $BorderRadius.$vertical)
..registerBridgeFunc('package:flutter/src/painting/border_radius.dart',
'BorderRadius.horizontal', $BorderRadius.$horizontal)
..registerBridgeFunc('package:flutter/src/painting/edge_insets.dart',
'EdgeInsets.symmetric', $EdgeInsets.$symmetric)
..registerBridgeFunc('package:flutter/src/painting/text_style.dart',
'TextStyle.', $TextStyle.$new)
..registerBridgeFunc(
'package:flutter/src/animation/animation_controller.dart',
'AnimationController.',
$AnimationController.$new)
..registerBridgeFunc(
'package:flutter/src/animation/curves.dart', '_Linear._', $_Linear.$_)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'SawTooth.', $SawTooth.$new)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'Interval.', $Interval.$new)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'Threshold.', $Threshold.$new)
..registerBridgeFunc(
'package:flutter/src/animation/curves.dart', 'Cubic.', $Cubic.$new)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'_DecelerateCurve._', $_DecelerateCurve.$_)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'ElasticInCurve.', $ElasticInCurve.$new)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'ElasticOutCurve.', $ElasticOutCurve.$new)
..registerBridgeFunc('package:flutter/src/animation/curves.dart',
'ElasticInOutCurve.', $ElasticInOutCurve.$new)
..registerBridgeFunc('package:flutter/src/rendering/box.dart',
'BoxConstraints.', $BoxConstraints.$new)
..registerBridgeFunc('package:flutter/src/rendering/box.dart',
'BoxConstraints.tightFor', $BoxConstraints.$tightFor)
..registerBridgeFunc('package:flutter/src/rendering/box.dart',
'BoxConstraints.tightForFinite', $BoxConstraints.$tightForFinite)
..registerBridgeFunc('package:flutter/src/rendering/box.dart',
'BoxConstraints.expand', $BoxConstraints.$expand)
..registerBridgeFunc(
'package:flutter/src/scheduler/ticker.dart', 'Ticker.', $Ticker.$new)
..registerBridgeFunc('package:flutter/src/widgets/app.dart',
'WidgetsApp.', $WidgetsApp.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Align.', $Align.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'AspectRatio.', $AspectRatio.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Baseline.', $Baseline.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'ClipRRect.', $ClipRRect.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'ColoredBox.', $ColoredBox.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'Directionality.', $Directionality.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Expanded.', $Expanded.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'FittedBox.', $FittedBox.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'FractionallySizedBox.', $FractionallySizedBox.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'Positioned.', $Positioned.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'SizedBox.', $SizedBox.$new)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'SizedBox.expand', $SizedBox.$expand)
..registerBridgeFunc('package:flutter/src/widgets/basic.dart',
'SizedBox.shrink', $SizedBox.$shrink)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Stack.', $Stack.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Padding.', $Padding.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Column.', $Column.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Row.', $Row.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Center.', $Center.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/basic.dart', 'Builder.', $Builder.$new)
..registerBridgeFunc('package:flutter/src/widgets/icon_data.dart',
'IconData.', $IconData.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/icon.dart', 'Icon.', $Icon.$new)
..registerBridgeFunc('package:flutter/src/widgets/scroll_view.dart',
'ListView.', $ListView.$new)
..registerBridgeFunc('package:flutter/src/widgets/scroll_view.dart',
'ListView.builder', $ListView.$builder)
..registerBridgeFunc(
'package:flutter/src/widgets/spacer.dart', 'Spacer.', $Spacer.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/text.dart', 'Text.', $Text.$new)
..registerBridgeFunc('package:flutter/src/widgets/container.dart',
'Container.', $Container.$new)
..registerBridgeFunc('package:flutter/src/widgets/editable_text.dart',
'TextEditingController.', $TextEditingController.$new)
..registerBridgeFunc('package:flutter/src/material/app.dart',
'MaterialApp.', $MaterialApp.$new)
..registerBridgeFunc(
'package:flutter/src/material/app_bar.dart', 'AppBar.', $AppBar.$new)
..registerBridgeFunc(
'package:flutter/src/material/card.dart', 'Card.', $Card.$new)
..registerBridgeFunc(
'package:flutter/src/material/drawer.dart', 'Drawer.', $Drawer.$new)
..registerBridgeFunc('package:flutter/src/material/colors.dart',
'MaterialColor.', $MaterialColor.$new)
..registerBridgeFunc('package:flutter/src/material/colors.dart',
'MaterialAccentColor.', $MaterialAccentColor.$new)
..registerBridgeFunc('package:flutter/src/material/elevated_button.dart',
'ElevatedButton.', $ElevatedButton.$new)
..registerBridgeFunc(
'package:flutter/src/material/floating_action_button.dart',
'FloatingActionButton.',
$FloatingActionButton.$new)
..registerBridgeFunc('package:flutter/src/material/icon_button.dart',
'IconButton.', $IconButton.$new)
..registerBridgeFunc(
'package:flutter/src/widgets/image.dart', 'Image.', $Image.$new)
..registerBridgeFunc('package:flutter/src/widgets/image.dart',
'Image.network', $Image.$network)
..registerBridgeFunc('package:flutter/src/widgets/image.dart',
'Image.asset', $Image.$asset)
..registerBridgeFunc('package:flutter/src/material/list_tile.dart',
'ListTile.', $ListTile.$new)
..registerBridgeFunc('package:flutter/src/material/page.dart',
'MaterialPageRoute.', $MaterialPageRoute.$new)
..registerBridgeFunc('package:flutter/src/material/scaffold.dart',
'Scaffold.', $Scaffold.$new)
..registerBridgeFunc('package:flutter/src/material/scaffold.dart',
'ScaffoldMessenger.', $ScaffoldMessenger.$new)
..registerBridgeFunc('package:flutter/src/material/scaffold.dart',
'ScaffoldMessenger.of', $ScaffoldMessenger.$of)
..registerBridgeFunc('package:flutter/src/material/snack_bar.dart',
'SnackBar.', $SnackBar.$new)
..registerBridgeFunc('package:flutter/src/material/text_button.dart',
'TextButton.', $TextButton.$new)
..registerBridgeFunc('package:flutter/src/material/text_field.dart',
'TextField.', $TextField.$new)
..registerBridgeFunc('package:flutter/src/material/text_theme.dart',
'TextTheme.', $TextTheme.$new)
..registerBridgeFunc('package:flutter/src/material/theme_data.dart',
'ThemeData.', $ThemeData.$new)
..registerBridgeFunc(
'package:flutter/src/material/theme.dart', 'Theme.of', $Theme.$of)
..registerBridgeFunc(
'package:flutter/src/material/theme.dart', 'Theme.', $Theme.$new)
..registerBridgeFunc('package:flutter/src/widgets/navigator.dart',
'Navigator.', $Navigator.$new)
..registerBridgeFunc('package:flutter/src/widgets/navigator.dart',
'Navigator.of', $Navigator.$of)
..registerBridgeFunc('package:flutter/src/painting/image_provider.dart',
'NetworkImage.', $NetworkImage.$new)
..registerBridgeFunc('package:flutter/src/painting/image_provider.dart',
'MemoryImage.', $MemoryImage.$new)
..registerBridgeFunc('package:flutter/src/painting/image_provider.dart',
'ResizeImage.', $ResizeImage.$new)
..registerBridgeFunc('package:flutter/src/widgets/gesture_detector.dart',
'GestureDetector.', $GestureDetector.$new)
..registerBridgeFunc('package:flutter/src/gestures/tap.dart',
'TapDownDetails.', $TapDownDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/tap.dart',
'TapUpDetails.', $TapUpDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/long_press.dart',
'LongPressStartDetails.', $LongPressStartDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/long_press.dart',
'LongPressMoveUpdateDetails.', $LongPressMoveUpdateDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/long_press.dart',
'LongPressEndDetails.', $LongPressEndDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/drag_details.dart',
'DragStartDetails.', $DragStartDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/drag_details.dart',
'DragUpdateDetails.', $DragUpdateDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/drag_details.dart',
'DragEndDetails.', $DragEndDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/drag_details.dart',
'DragDownDetails.', $DragDownDetails.$new)
..registerBridgeFunc('package:flutter/src/gestures/velocity_tracker.dart',
'Velocity.', $Velocity.$new)
..registerBridgeFunc('package:flutter/src/services/platform_channel.dart',
'MethodChannel.', $MethodChannel.$new)
..registerBridgeEnumValues('dart:ui', 'FontWeight', $FontWeight.$values)
..registerBridgeEnumValues('dart:ui', 'FontStyle', $FontStyle.$values)
..registerBridgeEnumValues(
'dart:ui', 'TextDirection', $TextDirection.$values)
..registerBridgeEnumValues(
'dart:ui', 'TextBaseline', $TextBaseline.$values)
..registerBridgeEnumValues(
'dart:ui', 'PointerDeviceKind', $PointerDeviceKind.$values)
..registerBridgeEnumValues('dart:ui', 'Clip', $Clip.$values)
..registerBridgeEnumValues(
'package:flutter/src/painting/basic_types.dart',
'VerticalDirection',
$VerticalDirection.$values)
..registerBridgeEnumValues(
'package:flutter/src/painting/basic_types.dart',
'Axis',
$Axis.$values)
..registerBridgeEnumValues('package:flutter/src/painting/box_fit.dart',
'BoxFit', $BoxFit.$values)
..registerBridgeEnumValues(
'dart:ui', 'FilterQuality', $FilterQuality.$values)
..registerBridgeEnumValues('package:flutter/src/rendering/flex.dart',
'MainAxisSize', $MainAxisSize.$values)
..registerBridgeEnumValues('package:flutter/src/rendering/flex.dart',
'MainAxisAlignment', $MainAxisAlignment.$values)
..registerBridgeEnumValues('package:flutter/src/rendering/flex.dart',
'CrossAxisAlignment', $CrossAxisAlignment.$values)
..registerBridgeEnumValues('package:flutter/src/rendering/proxy_box.dart',
'HitTestBehavior', $HitTestBehavior.$values);
}
}