Skip to content

Instantly share code, notes, and snippets.

View jonahwilliams's full-sized avatar

Jonah Williams jonahwilliams

  • Roblox
  • San Mateo, CA
View GitHub Profile
@jonahwilliams
jonahwilliams / diff.txt
Created October 24, 2024 16:37
benchmark change
diff --git a/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart b/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
index 8e3a41ab92..bfaaabd7fd 100644
--- a/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
+++ b/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
@@ -27,6 +27,7 @@ class VeryLongPictureScrollingPerfState extends State<VeryLongPictureScrollingPe
return Scaffold(
appBar: AppBar(
actions: <Widget>[
+ LinearProgressIndicator(),
Row(
@jonahwilliams
jonahwilliams / output.svg
Created October 23, 2024 20:17
very large picture scrolling UI thread
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonahwilliams
jonahwilliams / diff.txt
Created September 25, 2024 03:12
draw atlas painter
diff --git a/bench_flutter/lib/game/game_screen.dart b/bench_flutter/lib/game/game_screen.dart
index 16843e0..87da9d4 100644
--- a/bench_flutter/lib/game/game_screen.dart
+++ b/bench_flutter/lib/game/game_screen.dart
@@ -1,3 +1,5 @@
+import 'dart:ui' as ui;
+
import 'package:bench_flutter/audio/audio_controller.dart';
import 'package:bench_flutter/game/button.dart';
import 'package:bench_flutter/game/game_world.dart';
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" width="1200" height="1414" onload="init(evt)" viewBox="0 0 1200 1414" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs>
<linearGradient id="background" y1="0" y2="1" x1="0" x2="0" >
<stop stop-color="#eeeeee" offset="5%" />
<stop stop-color="#eeeeb0" offset="95%" />
</linearGradient>
</defs>
<style type="text/css">
.func_g:hover { stroke:black; stroke-width:0.5; cursor:pointer; }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/packages/flutter_tools/lib/src/android/android_device.dart b/packages/flutter_tools/lib/src/android/android_device.dart
index 40a291ae0b..8488af4c86 100644
--- a/packages/flutter_tools/lib/src/android/android_device.dart
+++ b/packages/flutter_tools/lib/src/android/android_device.dart
@@ -1162,63 +1162,7 @@ class AdbLogReader extends DeviceLogReader {
if (_linesController.isClosed) {
return;
}
- final Match? timeMatch = AndroidDevice._timeRegExp.firstMatch(line);
- if (timeMatch == null || line.length == timeMatch.end) {
@jonahwilliams
jonahwilliams / main.dart
Created July 3, 2024 21:52
Rendering bug on iPads
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() =>
@jonahwilliams
jonahwilliams / main.dart
Created June 21, 2024 03:04
Linear gradient with non-linear easing
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
diff --git a/lib/ui/screens/editorial/editorial_screen.dart b/lib/ui/screens/editorial/editorial_screen.dart
index b250bb55..5bcaeb4b 100644
--- a/lib/ui/screens/editorial/editorial_screen.dart
+++ b/lib/ui/screens/editorial/editorial_screen.dart
@@ -1,6 +1,6 @@
import 'dart:async';
-import 'package:drop_cap_text/drop_cap_text.dart';
+// import 'package:drop_cap_text/drop_cap_text.dart';
import 'package:flutter/rendering.dart';