You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你好,我在mac机器上下载了最新的flutter 1.10.7,xcode是10.1版本,下载代码后执行flutter run,很多报错类似于下面这样: ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:161:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required ViewportOffset offset, ^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:372:6: Error: Getter not found: 'required'. @required RenderSliver child, ^^^^^^^^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:372:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required RenderSliver child, ^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:373:6: Error: Getter not found: 'required'. @required double scrollOffset, ^^^^^^^^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:373:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required double scrollOffset, ^
请问怎么解决?
The text was updated successfully, but these errors were encountered:
你好,我在mac机器上下载了最新的flutter 1.10.7,xcode是10.1版本,下载代码后执行flutter run,很多报错类似于下面这样:
../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:161:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required ViewportOffset offset, ^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:372:6: Error: Getter not found: 'required'. @required RenderSliver child, ^^^^^^^^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:372:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required RenderSliver child, ^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:373:6: Error: Getter not found: 'required'. @required double scrollOffset, ^^^^^^^^ ../sdk/flutter/packages/flutter/lib/src/rendering/viewport.dart:373:6: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor. @required double scrollOffset, ^
请问怎么解决?
The text was updated successfully, but these errors were encountered: