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 / 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 {
@Piinks
Piinks / main.dart
Created October 17, 2023 19:50
Repro Customer Issue
import 'package:flutter/material.dart';
void main() {
runApp(const BugExample());
}
class BugExample extends StatelessWidget {
const BugExample();
@override
@Piinks
Piinks / main.dart
Created August 10, 2023 19:42
Mouse wheel checker
// 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 'dart:math' as math;
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
@Piinks
Piinks / main.dart
Last active January 18, 2024 21:24
Two Dimensional Grid in Flutter
// 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 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';