Skip to content

Instantly share code, notes, and snippets.

Collin Jackson collinjackson

Block or report user

Report or block collinjackson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@collinjackson
collinjackson / column_reduced_test_case.dart
Created Aug 26, 2015
Reduced test case for Column height issue
View column_reduced_test_case.dart
// Copyright 2015 The Chromium 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 'dart:async';
import 'package:sky/rendering/sky_binding.dart';
import 'package:sky/widgets.dart';
import 'package:sky/theme/colors.dart' as colors;
void main() {
View scrolling_app.dart
// Copyright 2015 The Chromium 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:sky/widgets.dart';
class Circle extends Component {
Circle(this.color);
final Color color;
View gist:1cc1c934ceb172ebbf1b
// Copyright 2015 The Chromium 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:sky/widgets.dart';
import 'package:sky/material.dart';
class BlockApp extends App {
Widget build() {
View reduced_test_case.dart
// Copyright 2015 The Chromium 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:sky/material.dart';
import 'package:sky/widgets.dart';
class ReducedTestCaseApp extends StatefulComponent {
ReducedTestCaseAppState createState() => new ReducedTestCaseAppState();
}
@collinjackson
collinjackson / flutter_ios.md
Last active Oct 16, 2015
Instructions for building Flutter for iOS
View flutter_ios.md

Instructions for building Flutter for iOS

Important notes:

  • These instructions are for building from source. Developer workflow for iOS will get a lot simpler once we publish the precompiled iOS binaries in the public Flutter SDK.

  • Dart precompilation for iOS is landing soon. This will make the builds much faster.

Getting the code

@collinjackson
collinjackson / main.dart
Last active Oct 21, 2015
Perf issue on OnePlus+; Android One doesn't do the clip oval at all
View main.dart
// Copy this over main.dart in Stocks
// Build app:
// adb uninstall org.domokit.stocks; ninja -C out/android_Release/; adb install -r out/android_Release/apks/Stocks.apk
// Get trace:
// ninja -C out/android_Release/; adb install -r out/android_Debug/apks/Stocks.apk; mkdir tmp; rm tmp/*; adb shell run-as org.domokit.stocks chmod -R 0777 /data/data/org.domokit.stocks/app_sky_shell; cd tmp; adb pull /data/data/org.domokit.stocks/app_sky_shell; cd ..; ~/Downloads/debugger.app/Contents/MacOS/debugger tmp
import 'package:flutter/material.dart';
View reduced_test_case.dart
Widget build(BuildContext context) {
return new Scaffold(
toolBar: new ToolBar(
backgroundColor: const Color(0xFFFFFF00)
),
floatingActionButton: new FloatingActionButton(
onPressed: () => debugDumpRenderTree(),
child: new Container()
),
body:
@collinjackson
collinjackson / input_demo.dart
Created Feb 3, 2016
Reduced test case of input being covered by keyboard
View input_demo.dart
import 'package:flutter/material.dart';
void main() {
runApp(
new MaterialApp(
title: "Input Demo",
routes: <String, RouteBuilder>{
'/': (RouteArguments args) => new FlutterDemo()
}
)
@collinjackson
collinjackson / input.dart
Last active Feb 8, 2016
New Input API example
View input.dart
import 'package:flutter/material.dart';
void main() {
runApp(
new MaterialApp(
title: "Input Demo",
routes: <String, RouteBuilder>{
'/': (RouteArguments args) => new FlutterDemo()
}
)
View gist:b7af2b2fc2349594e1f1
/// Configurable state of an input field.
class InputValue {
const InputValue({ this.text: '', this.selection });
/// The current text being edited.
String text;
/// The range of text that is currently selected.
TextSelection selection;
You can’t perform that action at this time.