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 / 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/ruby@3.0/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(
...
@kenzieschmoll
kenzieschmoll / main.dart
Last active October 25, 2021 07:19
Maps Sample V2 - add onAddmarkerButtonPressed() pt 1.
final Set<Marker> _markers = {};
@override
Widget build(BuildContext context) {
return MaterialApp(
...
GoogleMap(
...
markers: _markers,
),
@kenzieschmoll
kenzieschmoll / AppDelegate.m
Created March 15, 2019 18:25
Maps Sample V2 - AppDelegate.m
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
// Add the GoogleMaps import.
#import "GoogleMaps/GoogleMaps.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Add the following line with your API key.