実機ビルドで発生 しかし、SimulatorではOKだった。
以下のように@required
だとエラーになる
VSCode上の話
class DatePickerComponent extends StatelessWidget { const DatePickerComponent({ Key key, @required this.setMonth, @required this.setDate, @required this.setYear, @required this.themeData, @required this.scrollController, }) : super(key: key); final Function setMonth;
同じ現象
https://github.com/dart-lang/sdk/issues/27788
ちなみにコンソール上はこれ。
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === Building AOT snapshot in debug mode (ios)... compiler message: lib/date_picker.dart:22:6: Error: Getter not found: 'required'. compiler message: @required this.setMonth,
よく分からんが、単純に@required
を取るとビルドは行けた
ただし、以下のエラーがコンソール上に
Traceback (most recent call last): File "<input>", line 1, in <module> File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module> import weakref File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module> from _weakref import ( ImportError: cannot import name _remove_dead_weakref