Skip to content

Instantly share code, notes, and snippets.

View christopherfujino's full-sized avatar
💻
Maybe coding

Christopher Fujino christopherfujino

💻
Maybe coding
View GitHub Profile
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [7574]
Path: /Users/USER/Downloads/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 15.0 (22237.2)
Build Info: IDEFrameworks-22237002000000000~5 (15A5209g)
Code Type: ARM-64 (Native)
@christopherfujino
christopherfujino / inherited_widget.dart
Created June 25, 2023 23:45
Minimal implementation of InheritedWidget
import 'package:flutter/material.dart';
void main() => runApp(
StateWrapper(
MaterialApp(
home: Scaffold(
body: App(),
),
),
),

How the tool uses globals

Consider the following minimal command line application that has two sub-commands ("foo" and "bar") and a single Logger instance shared between the two:

// example_00.dart
void main(List<String> args) {
 return switch (args.first) {
@christopherfujino
christopherfujino / dap_with_dart_in_neovim.md
Last active March 11, 2024 16:21
Debug Adapter Protocol for Flutter/Dart in Neovim
@christopherfujino
christopherfujino / refactor.diff
Created May 15, 2020 18:44
bin/flutter -> bin/shared.sh diff
diff --git a/bin/flutter b/bin/shared.sh
index 87bd59711..a9de7f131 100755
--- a/bin/flutter
+++ b/bin/shared.sh
@@ -16,25 +16,6 @@ set -e
unset CDPATH
-function follow_links() {
- cd -P "${1%/*}"
@christopherfujino
christopherfujino / patch.diff
Created May 12, 2020 22:45
pin customer_testing for stable hotfix
From bad9a44031fc9b1721d6ab1fc746d21d2fa76def Mon Sep 17 00:00:00 2001
From: Christopher Fujino <christopherfujino@gmail.com>
Date: Tue, 12 May 2020 15:42:28 -0700
Subject: pin customer_testing
---
.cirrus.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.cirrus.yml b/.cirrus.yml
@christopherfujino
christopherfujino / curl-devicelab-log.md
Created October 18, 2019 21:47
curl Flutter devicelab logs to a file
  1. Open Chrome dev tools on the build dashboard -> Application -> Cookies -> "X-Flutter-IdToken" copy and paste the value into your terminal as export FLUTTER_DASHBOARD_COOKIE=''
  2. Copy and paste the URL of the specific task logs to your terminal as export LOGS_URL='https://logs.url/'
  3. Then curl the logs to a local file: curl "$LOGS_URL" -b "X-Flutter-IdToken=${FLUTTER_DASHBOARD_COOKIE}" | tee dashboard-logs.txt
@christopherfujino
christopherfujino / ios13-syslog
Created September 12, 2019 21:38
iphone Xr ios 13 sys log when plugging in device to mac host
default 14:35:12.310579 -0700 lockdownd spawn_xpc_service_block_invoke: <private>
default 14:35:12.310774 -0700 lockdownd spawn_xpc_service_block_invoke: <private>
default 14:35:12.312592 -0700 symptomsd L2 Metrics on en0: rssi: -69 [-68,-67] -> -69, snr: 32 (cca [wake/total] self/other/intf): [-1,-1]/[-1,-1]/[-1,-1]/14 (txFrames/txReTx/txFail): 10/0/0 -> (was/is) 0/0
default 14:35:12.312866 -0700 symptomsd Received Wi-Fi Assist Override along with LQM info: 0
default 14:35:12.314321 -0700 springboardservicesrelay Initializing connection
default 14:35:12.315842 -0700 springboardservicesrelay Removing all cached process handles
default 14:35:12.316265 -0700 springboardservicesrelay Sending handshake request attempt #1 to server
default 14:35:12.316555 -0700 springboardservicesrelay Creating connection to com.apple.runningboard
default 14:35:12.317222 -0700 runningboardd Incoming connection from 343, user 501
default 14:35:12.317553 -0700 runningboardd _resolveProcessWithIdentifier sysctl pid 343 is euid 501
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: flutter-brew-linker.sh COMMAND"
echo "where COMMAND is either \"unlink\" or \"link\"."
exit 99
fi
COMMAND="$1"

Flutter Attach

Overview

A Flutter-command that attaches to applications that have been launched without flutter run.

With an application already running, a HotRunner can be attached to it with: