Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

xster

🌴
On vacation
View GitHub Profile
@xster
xster / 1- pigeon.dart
Last active Mar 24, 2021
datastore + pigeon
View 1- pigeon.dart
@datastore
class Profile {
String name;
String address;
Image profile;
}
@HostApi
abstract class ProfileApi {
Profile getProfile();
@xster
xster / gist:04e930aabadbd40b90dd2bcce7931ba7
Last active Dec 9, 2020
Pulling synchronous data from Flutter on the platform vs platform cache for Dart feature developers
View gist:04e930aabadbd40b90dd2bcce7931ba7
// With a platform-thread Dart isolate/cache
pageA.java - our feature team just owns this one file on the Java side
--------------------------
class FeatureAFlutterActivity extends Activity implements SomeLibraryCallback {
// Long lived engine, owned by someone else, given to me by
// an injector.
@Inject FlutterEngine flutterEngine;
@Inject SomeLibraryHandle someLibraryHandle;
View gist:5becc4937c2cef8d5e84660d0601abd1
[ +17 ms] executing: [/Users/xster/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +27 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] d9951401e95f6b8db9384611eb9c1f5740b29455
[ ] executing: [/Users/xster/development/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +16 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.16.2-43-gd9951401e9
[ +6 ms] executing: [/Users/xster/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/fix-attach-2
[ ] executing: [/Users/xster/development/flutter/] git ls-remote --get-url origin
View list.md

See also

  • 1

See also:

  • 1
View fastlane install time
brew cask install fastlane | gnomon (01-23 15:35:05)
0.5522s ==> Migrating Caskroom from /opt/homebrew-cask/Caskroom to /Users/xster/.homebrew/Caskroom.
0.0005s ==> Creating symlink from /Users/xster/.homebrew/Caskroom to /opt/homebrew-cask/Caskroom.
0.0001s ==> Satisfying dependencies
4.6167s ==> Downloading https://kits-crashlytics-com.s3.amazonaws.com/fastlane/standalone/fastlane.zip
0.0001s ==> No checksum defined for Cask fastlane, skipping verification
3.8921s ==> Installing Cask fastlane
17.2896s ==> Running installer script 'install'
0.0001s ==>
0.0001s ==> Installing fastlane to /Users/xster/.fastlane/bin... this might take a few seconds
View offline error
flutter run (01-22 16:53:58)
Running "flutter packages get" in t64_list_wheel_demo...
Got socket error trying to find package collection at https://pub.dartlang.org.
---- Log transcript ----
FINE: Pub 2.0.0-dev.16.0
MSG : Resolving dependencies...
SLVR: Solving dependencies:
| - flutter any from sdk (flutter) (locked to 0.0.41-dev)
SLVR: * start at root
SLVR: | flutter 0.0.41-dev from sdk is locked
View Stack overflow
OS Version: iOS 8.4 (12H143)
Report Version: 104
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: ILL_NOOP at 0x00000001009f7028
Crashed Thread: 7
Application Specific Information:
Stack overflow in (null)
@xster
xster / error.dart
Created Jan 3, 2018
Flutter with empty exception stack
View error.dart
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
@xster
xster / First run
Last active Jun 30, 2017
pod install with lots of dependencies
View First run
0.2837s Preparing
0.0005s
0.0002s Analyzing dependencies
0.0000s
0.0000s Inspecting targets to integrate
0.0000s Using `ARCHS` setting to build architectures of target `Pods-Runner`: (`arm64`)
0.0000s
0.0000s Fetching external sources
0.0151s -> Fetching podspec for `Flutter` from `/Users/xiao/Development/flutter/bin/cache/artifacts/engine/ios`
0.0013s -> Fetching podspec for `android_intent` from `/Users/xiao/.pub-cache/hosted/pub.dartlang.org/android_intent-0.0.1/ios`
@xster
xster / test.dart
Created Apr 20, 2017
TextField performance
View test.dart
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(