是什么意思:期望一个程序的构造函数扑朔迷离?

时间:2019-01-29 01:52:12

标签: flutter

我正在做以下运动练习: https://github.com/herediasamuel/udacity-course/tree/master/course/03_category_route/solution_03_category_route,我收到此错误:

'package:category_widget/main.dart': error: Unexpected tag 128 (SpecializedVariableGet) in ?, expected a procedure, a constructor or a function node'

我试图在main.dart中创建一个构造函数

class UnitConvertApp extends StatelessWidget {
 const UnitConvertApp();
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Unit Convert',
      home: CategoryRoute(),
    );
  }
}

但是没有用,知道吗?我可以做什么?谢谢

0 个答案:

没有答案