OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test.services.correction.flutter_util; | 5 library test.services.correction.flutter_util; |
6 | 6 |
7 String flutterPkgLibPath = '/packages/flutter/lib'; | 7 String flutterPkgLibPath = '/packages/flutter/lib'; |
8 | 8 |
9 String get flutter_framework_code => ''' | 9 String get flutter_framework_code => ''' |
10 class Widget {} | 10 class Widget {} |
11 class RenderObjectWidget extends Widget {} | 11 class RenderObjectWidget extends Widget {} |
12 class StatelessWidget extends Widget {} | 12 class StatelessWidget extends Widget {} |
| 13 abstract class StatefulWidget extends Widget { } |
13 class SingleChildRenderObjectWidget extends RenderObjectWidget {} | 14 class SingleChildRenderObjectWidget extends RenderObjectWidget {} |
14 class Transform extends SingleChildRenderObjectWidget {} | 15 class Transform extends SingleChildRenderObjectWidget {} |
15 class ClipRect extends SingleChildRenderObjectWidget { ClipRect.rect(){} } | 16 class ClipRect extends SingleChildRenderObjectWidget { ClipRect.rect(){} } |
16 class AspectRatio extends SingleChildRenderObjectWidget {} | 17 class AspectRatio extends SingleChildRenderObjectWidget {} |
17 class Container extends StatelessWidget { Container({child: null, width: null, h
eight: null}){}} | 18 class Container extends StatelessWidget { Container({child: null, width: null, h
eight: null}){}} |
18 class Center extends StatelessWidget { Center({child: null, key: null}){}} | 19 class Center extends StatelessWidget { Center({child: null, key: null}){}} |
19 class DefaultTextStyle extends StatelessWidget { DefaultTextStyle({child: null})
{}} | 20 class DefaultTextStyle extends StatelessWidget { DefaultTextStyle({child: null})
{}} |
20 class Row extends Widget { Row({List<Widget> children: null, key: null}){}} | 21 class Row extends Widget { Row({List<Widget> children: null, key: null}){}} |
21 class GestureDetector extends SingleChildRenderObjectWidget { GestureDetector({c
hild: null, onTap: null}){}} | 22 class GestureDetector extends SingleChildRenderObjectWidget { GestureDetector({c
hild: null, onTap: null}){}} |
22 class Scaffold extends Widget { Scaffold({body: null}){}} | 23 class AppBar extends StatefulWidget implements PreferredSizeWidget { AppBar(titl
e: null, color: null, key: null) } |
| 24 class Scaffold extends Widget { Scaffold({body: null, PreferredSizeWidget appBar
: null}){}} |
| 25 class PreferredSizeWidget implements Widget {} |
23 '''; | 26 '''; |
OLD | NEW |