nerd0geek1 / flutter_sample

Flutter学習用のサンプルレポジトリ
0 stars 0 forks source link

NNBD対応 #16

Open nerd0geek1 opened 4 years ago

nerd0geek1 commented 4 years ago

経緯

Testing started at 11:44 ... /Users/tabatakohei/Flutter_development/bin/flutter --no-color test --machine --start-paused test/platform_widget_test.dart Warning: You should setSILENT_OBSERVATORYto true when debugging the VM as it will output the observatory URL by default. This breaks the various reporter contracts. To set the value defineDART_VM_OPTIONS=-DSILENT_OBSERVATORY=true`.

lib/presentation_layer/platform_widget.dart:6:8: Error: This requires the 'non-nullable' language feature to be enabled. Try updating your pubspec.yaml to set the minimum SDK constraint to 2.9 or higher, and running 'pub get'. Key? key, ^ lib/presentation_layer/platform_widget.dart:12:23: Error: This requires the 'non-nullable' language feature to be enabled. Try updating your pubspec.yaml to set the minimum SDK constraint to 2.9 or higher, and running 'pub get'. final TargetPlatform? targetPlatform; ^ lib/presentation_layer/platform_widget.dart:8:5: Error: 'required' isn't a type. required this.androidBuilder, ^^^^^^^^ ../../../.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/meta.dart:205:16: Context: This isn't a type. const Required required = const Required(); ^^^^^^^^ lib/presentation_layer/platform_widget.dart:9:5: Error: 'required' isn't a type. required this.iosBuilder, ^^^^^^^^ ../../../.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/meta.dart:205:16: Context: This isn't a type. const Required required = const Required(); ^^^^^^^^ dart:async/stream_controller.dart 634:44 _StreamController.addError dart:async/stream_controller.dart 904:13 _StreamSinkWrapper.addError package:stream_channel/src/guarantee_channel.dart 144:14 _GuaranteeSink._addError package:stream_channel/src/guarantee_channel.dart 135:5 _GuaranteeSink.addError package:flutter_tools/src/test/flutter_platform.dart 471:27 FlutterPlatform._startTest ===== asynchronous gap =========================== dart:async/zone.dart 1121:19 _CustomZone.registerUnaryCallback dart:async-patch/async_patch.dart 83:23 _asyncThenWrapperHelper package:flutter_tools/src/test/flutter_platform.dart 370:36 FlutterPlatform.loadChannel package:flutter_tools/src/test/flutter_platform.dart 323:46 FlutterPlatform.load package:test_core/src/runner/loader.dart 232:38 Loader.loadFile. ===== asynchronous gap =========================== dart:async/zone.dart 1121:19 _CustomZone.registerUnaryCallback dart:async-patch/async_patch.dart 83:23 _asyncThenWrapperHelper package:test_core/src/runner/loader.dart Loader.loadFile. package:test_core/src/runner/load_suite.dart 98:31 new LoadSuite.. package:test_core/src/runner/load_suite.dart 108:8 new LoadSuite. package:test_api/src/backend/invoker.dart 235:15 Invoker.waitForOutstandingCallbacks. dart:async/zone.dart 1190:13 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 1630:10 _runZoned dart:async/zone.dart 1550:10 runZoned package:test_api/src/backend/invoker.dart 232:5 Invoker.waitForOutstandingCallbacks package:test_api/src/backend/invoker.dart 388:17 Invoker._onRun... ===== asynchronous gap =========================== dart:async/zone.dart 1121:19 _CustomZone.registerUnaryCallback dart:async-patch/async_patch.dart 83:23 _asyncThenWrapperHelper package:test_api/src/backend/invoker.dart Invoker._onRun... dart:async/zone.dart 1190:13 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 1630:10 _runZoned dart:async/zone.dart 1550:10 runZoned package:test_api/src/backend/invoker.dart 374:9 Invoker._onRun.. dart:async/zone.dart 1190:13 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 1630:10 _runZoned dart:async/zone.dart 1550:10 runZoned package:test_api/src/backend/invoker.dart 148:7 Invoker.guard package:test_api/src/backend/invoker.dart 418:15 Invoker._guardIfGuarded package:test_api/src/backend/invoker.dart 373:7 Invoker._onRun. package:stack_trace/src/chain.dart 102:24 Chain.capture. dart:async/zone.dart 1190:13 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 1630:10 _runZoned dart:async/zone.dart 1550:10 runZoned package:stack_trace/src/chain.dart 100:12 Chain.capture package:test_api/src/backend/invoker.dart 372:11 Invoker._onRun package:test_api/src/backend/live_test_controller.dart 152:11 LiveTestController.run dart:async/future.dart 201:37 new Future.microtask. dart:async/zone.dart 1182:47 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 997:7 _CustomZone.runGuarded dart:async/zone.dart 1037:23 _CustomZone.bindCallbackGuarded. dart:async/zone.dart 1190:13 _rootRun dart:async/zone.dart 1093:19 _CustomZone.run dart:async/zone.dart 997:7 _CustomZone.runGuarded dart:async/zone.dart 1037:23 _CustomZone.bindCallbackGuarded. dart:async/schedule_microtask.dart 41:21 _microtaskLoop dart:async/schedule_microtask.dart 50:5 _startMicrotaskLoop dart:isolate-patch/isolate_patch.dart 118:13 _runPendingImmediateCallback dart:isolate-patch/isolate_patch.dart 169:5 _RawReceivePortImpl._handleMessage

Failed to load "/Users/tabatakohei/Desktop/projects/flutter_sample/test/platform_widget_test.dart": Compilation failed Test: /Users/tabatakohei/Desktop/projects/flutter_sample/test/platform_widget_test.dart Shell: /Users/tabatakohei/Flutter_development/bin/cache/artifacts/engine/darwin-x64/flutter_tester `