Skip to content

Instantly share code, notes, and snippets.

View ericwindmill's full-sized avatar

Eric Windmill ericwindmill

View GitHub Profile
@ericwindmill
ericwindmill / form_page.dart
Created April 14, 2018 21:56
Inherited Widget Sample boiler plate:
class UpdateUserScreen extends StatelessWidget {
static final GlobalKey<FormState> formKey = new GlobalKey<FormState>();
static final GlobalKey<FormFieldState<String>> firstNameKey =
new GlobalKey<FormFieldState<String>>();
static final GlobalKey<FormFieldState<String>> lastNameKey =
new GlobalKey<FormFieldState<String>>();
static final GlobalKey<FormFieldState<String>> emailKey =
new GlobalKey<FormFieldState<String>>();
const UpdateUserScreen({Key key}) : super(key: key);
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'dart:math' as math;
class Bar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Container(
width: 45.0,
height: 14.0,
@ericwindmill
ericwindmill / index.html
Created September 8, 2018 20:44
Dart Pad Banana Stand Proof of Concept
<body>
<header>
<h1>The Banana Stand</h1>
<p> Brought to you by Dart POS </p>
</header>
<main>
<section class="buttons-container">
<h2>Choose Product</h1>
<button class='product-button'>Plain Banana</button>
<button class='product-button'>Frozen Banana</button>
@ericwindmill
ericwindmill / hint.txt
Created May 2, 2020 18:00
Iterable-listToUpperCase
Try using Iterable.map to change every item in a list.
@ericwindmill
ericwindmill / hint.txt
Last active May 10, 2020 15:35
fbe_dart_iterable_loops
Try using a `for in` loop.
@ericwindmill
ericwindmill / hint.txt
Created May 10, 2020 16:09
fbe_dart_iterables_add
Peek should show the element that was added least recently, but not remove it.
@ericwindmill
ericwindmill / hint.txt
Created May 10, 2020 16:28
fbe_dart_iterables_any_and_every
try using `any` on user.roles and `every` on Role.values
@ericwindmill
ericwindmill / hint.txt
Created May 10, 2020 16:43
fbe_dart_iterables_remove_elements_stack
Peek should show the element that was added least recently, but not remove it
@ericwindmill
ericwindmill / hint.txt
Created May 10, 2020 17:00
fbe_dart_iterables_change_expand
Try using `expand` to transform a list of orders into a list of those order's items.
@ericwindmill
ericwindmill / hint.txt
Created May 10, 2020 17:15
fbe_dart_iterables_filter_where_takewhile
This will require using `where` and `skipWhile` together