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 / main.dart
Last active May 16, 2019
PageView example with dots indicator
View main.dart
// Copyright 2017, the Flutter 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';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
@collinjackson
collinjackson / results.txt
Created May 13, 2019
results of running integration tests on flutter stable
View results.txt
jackson-macbookpro4:packages jackson$ pub global run flutter_plugin_tools drive-examples
RUNNING DRIVER TEST for cloud_firestore/example/test_driver/cloud_firestore.dart
Running "flutter packages get" in example... 1.4s
Using device Android SDK built for x86.
Starting application: test_driver/cloud_firestore.dart
Initializing gradle... 0.6s
Resolving dependencies... 2.0s
Installing build/app/outputs/apk/app.apk... 2.6s
Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
@collinjackson
collinjackson / main.dart
Last active Apr 11, 2019
pomodoro timer example
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(new Container(
color: Colors.white,
));
runApp(new MaterialApp(
theme: new ThemeData(primarySwatch: Colors.red),
home: new HomePage(),
));
@collinjackson
collinjackson / nested_scroll_view.dart
Last active Mar 28, 2019
nestedscrollview example
View nested_scroll_view.dart
// Copyright 2017, the Flutter 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';
void main() {
runApp(new TestApp());
}
View frosted.dart
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(home: new FrostedDemo()));
}
class FrostedDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
@collinjackson
collinjackson / main.dart
Last active Mar 21, 2019
Demonstrates scrolling a focused widget into view
View main.dart
// Copyright 2017, the Flutter 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:async';
import 'package:meta/meta.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
/// A widget that ensures it is always visible when focused.
View gist:8d78de88913e08d7768f6f816c9d8c5d
@deprecated('Use `FacebookAuthProvider` and `signInAndRetrieveData` instead')
Future<FirebaseUser> signInWithFacebook(
{@required String accessToken}) {
return signIn(credential: FacebookAuthProvider.getCredential(accessToken: accessToken));
}
/// Signs in with a Twitter account using the specified credentials.
///
/// The returned future completes with the signed-in user or a [PlatformException], if sign in failed.
@deprecated('Use `TwitterAuthProvider` and `signInAndRetrieveData` instead')
View nested_navigator.dart
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new Container(
color: Colors.white,
child: new MyAppHome(),
),
));
}
@collinjackson
collinjackson / main.dart
Last active Jul 23, 2018
Test case for BackdropFilter bugs
View main.dart
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new HomePage(),
));
}
View hero.dart
// Copyright (c) 2015, the Flutter 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/animation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
You can’t perform that action at this time.