Skip to content

Instantly share code, notes, and snippets.

View redbrogdon's full-sized avatar
💭
Flutterin'.

Andrew Brogdon redbrogdon

💭
Flutterin'.
View GitHub Profile
final Serializers serializers =
(_$serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build();
[
"SimpleObject",
"aString",
"Blah, blah, blah",
"anInt",
1,
"aDouble",
2.0
]
{
"$": "SimpleObject",
"aString": "Blah, blah, blah",
"anInt": 1,
"aDouble": 2.0
}
class MyApp extends StatelessWidget {
Stream<int> _countUp() async* {
for (int i = 1; i <= 10; i++) {
yield await Future.delayed(Duration(seconds: 1), () => i);
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history

Getting started with Flutter at DevCamp 2019!

tickets still available!

One of the options for creating an app at this year's DevCamp is Flutter, Google's open source SDK for building native iOS and Android apps from a single codebase. The Flutter team will be hanging around at the event, and for those of you interested in giving Flutter a try, we've prepared this gist as an installation cheat sheet.

@redbrogdon
redbrogdon / index.html
Last active March 28, 2019 23:10 — forked from kevmoo/index.html
DartPad Test #1 - Happy path
<!-- Copyright 2011 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. -->
<h2>This is some HTML, just in case.</h2
>
@redbrogdon
redbrogdon / main.dart
Created March 8, 2019 20:51
DartPad Test #2 - No HTML/CSS
String stringify(int x, int y) {
// Return a formatted string here
}
@redbrogdon
redbrogdon / main.dart
Created March 8, 2019 20:54
DartPad Test #3 - Nothing but main
void thisIsADartMethod() {
int blah = 2++;
}
@redbrogdon
redbrogdon / test.dart
Created March 8, 2019 20:54
DartPad Test #4 - Nothing but test
void main() {
print('This is a test main().');
}