Skip to content

Instantly share code, notes, and snippets.

View Piinks's full-sized avatar
💈
Yak shavin'

Kate Lovett Piinks

💈
Yak shavin'
View GitHub Profile
@Piinks
Piinks / output.txt
Created February 24, 2026 00:47
output
katelovett:~/github/flutter fixPubOnceMore $ dart ./dev/tools/bin/generate_gradle_lockfiles.dart --no-exclusion
If you don't wish to re-generate the settings.gradle, build.gradle, and gradle-wrapper.properties files,
add the flag `--no-gradle-generation`.
This tool automatically excludes a set of android subdirectories, defined at dev/tools/bin/config/lockfile_exclusion.yaml.
To disable this behavior, run with `--no-exclusion`.
Running without exclusion.
/Users/katelovett/github/flutter/docs/platforms/android/build.gradle(.kts) does not exist - skipping
Processing /Users/katelovett/github/flutter/examples/hello_world/android
Unhandled exception:
@Piinks
Piinks / main.dart
Created February 18, 2026 18:11
Sliver clip Rect and RRect etst cases
// 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 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('SliverClipRRect should have a straight cut at overlap, not rounded', (WidgetTester tester) async {
@Piinks
Piinks / main.dart
Created October 22, 2025 23:08
Playing with draggable scrollable sheet
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
/// Flutter code sample for [DraggableScrollableSheet].
void main() => runApp(const DraggableScrollableSheetExampleApp());
class DraggableScrollableSheetExampleApp extends StatelessWidget {
const DraggableScrollableSheetExampleApp({super.key});
@Piinks
Piinks / notable_instructions.md
Created July 25, 2025 23:31
Compiling Notable Commits

Instructions for Compiling the Weekly Notable Changes Report

This document outlines the comprehensive, step-by-step process for generating the weekly notable changes report for the Flutter repository. Follow these instructions carefully to ensure accuracy and efficiency.

Phase 1: Initial Data Gathering & Curation

  1. Fetch Latest Commits: Ensure the local repository is up-to-date by running git fetch.
  2. Get All Commits from the Last 7 Days: Get a list of all commits that have landed in the past seven days (inclusive of today). Use the following command to get the commit hash and the subject line:

git log --since="7 days ago" --pretty=format:"%H - %s"

import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(home: HomePage());
}
}
@Piinks
Piinks / main.dart
Created June 24, 2025 15:58
One-sided Pong
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'dart:async'; // For Timer
/// The GameModel manages the entire state of the Pong game.
/// It extends ChangeNotifier to notify its listeners (the UI) of any state changes.
class GameModel extends ChangeNotifier {
// Game dimensions, initialized to a default and updated by LayoutBuilder
double _gameAreaWidth = 300.0;
@Piinks
Piinks / main.dart
Created May 14, 2024 18:36
Span text style issue
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@Piinks
Piinks / main.dart
Created March 28, 2024 20:52
Reverse chat layout
// Copyright 2019 the Dart project 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 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@Piinks
Piinks / main.dart
Created December 5, 2023 22:49
Test scroll
// Run this sample as a:
// - Web app on Windows
// - Desktop app on Windows
// - Web app on Linux
// - Desktop app on Linux
// For each:
// - scroll with a physical mouse wheel
// (magic mouse from Apple does not count! It is treated as a trackpad)
// - scroll with trackpad
@Piinks
Piinks / main.dart
Created November 9, 2023 17:04
SliverVariedExtentList
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {