Skip to content

Instantly share code, notes, and snippets.

import 'package:vector_math/vector_math_64.dart';
void main() {
Matrix4 transform = Matrix4(
1.0, 0.0, 0.0, 0.0, // nodartfmt
0.0, 1.0, 0.0, 0.0, // nodartfmt
0.0, 0.0, 1.0, 500, // nodartfmt
0.0, 0.0, 0.001, 1.5, // nodartfmt
);
void main() {
apiMethod('foo');
apiMethod('foo', (value) => print('Hello $value'));
}
typedef Callback = void Function(String value);
void apiMethod(String value, [Callback? callback]) {
// What I would love to do instead of this if/else is something like:
// `backingMethod(value, callback ?? default)`, where `default` is a
my_rule = rule(
implementation = _my_rule_impl,
outputs = {
"dir": declared_output(
"%{name}.dir",
type="directory",
),
},
)
```
$ ./tools/gn --unoptimized --runtime-mode debug --target-os ios --ios --simulator
gn gen --check in out/ios_debug_sim_unopt
ERROR at the command-line "--args":1:294: Build argument has no effect.
goma_dir="/Users/tvolkert/project/goma" skia_use_dng_sdk=false is_clang=true use_goma=true flutter_runtime_mode="debug" target_cpu="x64" dart_experimental_interpreter=false skia_use_sfntly=false use_glfw=false use_ios_simulator=true is_debug=true dart_runtime_mode="develop" use_libjpeg_turbo=false flutter_aot=false skia_use_fontconfig=false ios_deployment_target="7.0" android_full_debug=false skia_use_libwebp=false target_os="ios"
^----
The variable "use_libjpeg_turbo" was set as a build argument
but never appeared in a decla
> flutter test test/material/tooltip_test.dart
00:00 +0: loading /Users/tvolkert/project/flutter/flutter/packages/flutter/test/material/tooltip_test.dart
444444444444444444444444444444444444444444444
00:01 +0: - Does tooltip end up in the right place - center
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure object was thrown running a test:
Expected: Point:<Point(284.0, 20.0)>
Actual: Point:<Point(284.5, 20.0)>
#0 0x00000001015e58e0 in dart::Instance::CheckedHandle(dart::Zone*, dart::RawObject*) [inlined] at /Users/tvolkert/project/flutter/engine/src/out/ios_debug_unopt/../../dart/runtime/vm/object.h:5393
#1 0x00000001015e5870 in dart::Instance::CheckedHandle(dart::RawObject*) at /Users/tvolkert/project/flutter/engine/src/out/ios_debug_unopt/../../dart/runtime/vm/object.h:5393
#2 0x00000001015dd9d4 in dart::DRT_HelperInlineCacheMissHandlerOneArg(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) [inlined] at /Users/tvolkert/project/flutter/engine/src/out/ios_debug_unopt/../../dart/runtime/vm/code_generator.cc:854
#3 0x00000001015dd9cc in dart::DRT_InlineCacheMissHandlerOneArg(dart::NativeArguments) at /Users/tvolkert/project/flutter/engine/src/out/ios_debug_unopt/../../dart/runtime/vm/code_generator.cc:853
#4 0x0000000101831220 in dart::Simulator::CallRuntime(dart::Thread*, dart::RawObject**, dart::RawObject**, unsigned int*, long, dart::RawObject**, dart::RawObject**, unsigned long) [inlined] at /Us
Incident Identifier: 4F32BC5E-11FA-4148-8C69-8688C83279F6
CrashReporter Key: 1f8ddedf7c6fde8d67a6c65100bc81152793425a
Hardware Model: iPhone8,2
Process: Runner [10010]
Path: /private/var/containers/Bundle/Application/2A9976C8-1271-45FB-9C74-12617A775856/Runner.app/Runner
Identifier: io.flutter.gallery
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]