This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'dart:convert'; | |
const String kFlutterPath = '/usr/local/google/home/liyuqian/flutter/flutter'; | |
const String kLogPath = '/var/tmp/end_driver'; | |
const String kFlutter308 = '024eaa3fb45dc41d0e3accb422b76da2d2d16731'; | |
const String kFlutter312 = 'e1005143ddadde4eff337d32fec5977cd162127a'; | |
const String kFlutter315 = '439fbbe69e9eed51d8fe02774989111e420eba7e'; | |
const String kRegression = 'a29906d5f552f2984daf9bef569b7fe1295e1c70'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Run this with `flutter run --profile` and check its tracing in the observatory. | |
/// | |
/// You should see janky animations of the CircularProgressIndicator caused by | |
/// expensiveFunction which has nothing to do with the Flutter framework. | |
import 'package:flutter/material.dart'; | |
import 'dart:developer'; | |
void expensiveFunction() { | |
// It will be very hard to tell why it's so janky without the following Timeline tracing | |
// (if the expensiveFunction has a much more innocent name, and is burried beneath hundreds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/scheduler.dart'; | |
import 'package:flutter/services.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'dart:io'; | |
import 'package:console/console.dart'; | |
void main() { | |
Console.init(); | |
double a = _askInputAndClearConsole('A, please tell me your value: '); | |
double b = _askInputAndClearConsole('B, please tell me your cost: '); | |
if (a < b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ui/window/pointer_data_packet.cc b/lib/ui/window/pointer_data_packet.cc | |
index bd2abd6f1..61f68c561 100644 | |
--- a/lib/ui/window/pointer_data_packet.cc | |
+++ b/lib/ui/window/pointer_data_packet.cc | |
@@ -20,8 +20,9 @@ void PointerDataPacket::SetPointerData(size_t i, const PointerData& data) { | |
memcpy(&data_[i * sizeof(PointerData)], &data, sizeof(PointerData)); | |
} | |
-void PointerDataPacket::GetPointerData(size_t i, PointerData* data) const { | |
- memcpy(data, &data_[i * sizeof(PointerData)], sizeof(PointerData)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
final imageUrl = | |
'https://cdn.vox-cdn.com/thumbor/yacVJaRnOvWiuIO3L6pe5Tmlv68=/0x26:640x453/920x613/filters:focal(0x26:640x453):format(webp)/cdn.vox-cdn.com/assets/1275052/kitten_field_jump.jpeg'; | |
class CostlyToRasterize extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
const color = Color(0xff00ff); | |
return Stack( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dart-review.googlesource.com/c/sdk/+/127920 | |
https://dart-review.googlesource.com/c/sdk/+/128200 | |
https://dart-review.googlesource.com/c/sdk/+/127921 | |
https://github.com/flutter/engine/pull/14323 | |
https://github.com/flutter/engine/pull/14521 | |
https://github.com/flutter/engine/pull/14319 | |
https://github.com/flutter/flutter/pull/47742 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(IssueDemoApp()); | |
} | |
class IssueDemoApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |