Skip to content

Instantly share code, notes, and snippets.

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

Andrew Brogdon RedBrogdon

💭
Flutterin'.
View GitHub Profile
@RedBrogdon
RedBrogdon / introrx.md
Last active February 8, 2018 00:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@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
Last active August 26, 2019 17:06 — forked from slightfoot/split_bar.dart
Split Bar in Flutter. Lets you touch between two horizontal sections to resize the split point.
import 'package:flutter_web/material.dart';
import 'package:flutter_web_ui/ui.dart' as ui;
void main() async {
await ui.webOnlyInitializePlatform();
runApp(
MaterialApp(
theme: ThemeData(
primaryColor: Colors.indigo,
@RedBrogdon
RedBrogdon / main.dart
Last active November 18, 2019 16:36 — forked from legalcodes/main.dart
Add four icons
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
@RedBrogdon
RedBrogdon / hello_world.dart
Last active November 19, 2019 18:48 — forked from johnpryan/hello_world.dart
flutter hello world
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@RedBrogdon
RedBrogdon / main.dart
Last active November 22, 2019 22:51 — forked from johnpryan/main.dart
Todo App
import 'package:flutter/material.dart';
void main() {
runApp(TasksApp());
}
class Task {
bool done;
String description;
Task(this.done, this.description);
@RedBrogdon
RedBrogdon / main.dart
Last active November 22, 2019 22:52 — forked from johnpryan/main.dart
Sliding Square
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
home: AnimatedAlignDemo(),
theme: ThemeData.dark(),
));
}
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
static const String _title = 'Flutter Code Sample';
@override
Widget build(BuildContext context) {
@RedBrogdon
RedBrogdon / main.dart
Last active February 5, 2021 17:39 — forked from legalcodes/main.dart
Image class
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [