Skip to content

Instantly share code, notes, and snippets.

View kenzieschmoll's full-sized avatar

Kenzie Davisson kenzieschmoll

  • Google
  • Portland, OR
View GitHub Profile
@kenzieschmoll
kenzieschmoll / list_queue_notifier.dart
Last active July 12, 2024 23:00
list_queue_notifier.dart
// Copyright 2024 The Chromium 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:collection';
import 'package:flutter/foundation.dart';
/// A [ChangeNotifier] that holds a [ListQueue] of data.
///
diff --git a/packages/devtools_app/lib/src/screens/logging/logging_screen.dart b/packages/devtools_app/lib/src/screens/logging/logging_screen.dart
index 6cbbce948..3f7e266f4 100644
--- a/packages/devtools_app/lib/src/screens/logging/logging_screen.dart
+++ b/packages/devtools_app/lib/src/screens/logging/logging_screen.dart
@@ -1,9 +1,8 @@
-// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@kenzieschmoll
kenzieschmoll / log.txt
Created August 30, 2023 16:50
Failing flutter web integration test
+ [[ macOS == \W\i\n\d\o\w\s ]]
+ '[' '!' -d ./flutter-sdk ']'
++ pwd
++ pwd
++ pwd
+ export PATH=/Users/runner/work/devtools/devtools/flutter-sdk/bin/cache/dart-sdk/bin:/Users/runner/work/devtools/devtools/flutter-sdk/bin:/Users/runner/work/devtools/devtools/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.11.1/x64
+ PATH=/Users/runner/work/devtools/devtools/flutter-sdk/bin/cache/dart-sdk/bin:/Users/runner/work/devtools/devtools/flutter-sdk/bin:/Users/runner/work/devtools/devtools/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/
@kenzieschmoll
kenzieschmoll / main.dart
Last active December 20, 2022 22:42
flutter_tester process not shutting down
import 'dart:async';
import 'dart:io';
Future<void> main() async {
final testApp = TestFlutterApp(
// For reproducing, this should be the path to a flutter app, relative to the directory
// that this main.dart script lives in.
'develop/devtools/packages/devtools_app/test/test_infra/fixtures/flutter_app',
);
await testApp.startProcess();
@kenzieschmoll
kenzieschmoll / gray.dart
Created July 14, 2022 22:46
intrinsics and savelayer changes to sloth_app
import 'package:flutter/material.dart';
class GrayPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
@kenzieschmoll
kenzieschmoll / main.dart
Created May 10, 2022 23:30
two way communication with iframe in Flutter Web app
import 'dart:async';
import 'dart:html' as html;
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() {
final controller = Controller()..init();
runApp(EmbeddedIFrameExample(controller));
}
@kenzieschmoll
kenzieschmoll / main.dart
Last active February 3, 2021 20:07
Scrollbar-bug
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@kenzieschmoll
kenzieschmoll / example.dart
Created June 20, 2019 20:26
Class name reporting
import 'dart:math';
class Position {
int x;
int y;
double distanceTo(Position other) {
var dx = other.x - x;
var dy = other.y - y;
@kenzieschmoll
kenzieschmoll / main.dart
Created March 15, 2019 20:00
Maps Sample V2 - add onAddmarkerButtonPressed() pt 3 - implement method
void _onAddMarkerButtonPressed() {
setState(() {
_markers.add(Marker(
// This marker id can be anything that uniquely identifies each marker.
markerId: MarkerId(_lastMapPosition.toString()),
position: _lastMapPosition,
infoWindow: InfoWindow(
title: 'Really cool place',
snippet: '5 Star Rating',
),
@kenzieschmoll
kenzieschmoll / main.dart
Created March 15, 2019 19:54
Maps Sample V2 - add onAddmarkerButtonPressed() pt 2 - track camera position
LatLng _lastMapPosition = _center;
void _onCameraMove(CameraPosition position) {
_lastMapPosition = position.target;
}
@override
Widget build(BuildContext context) {
return MaterialApp(
...