Skip to content

Instantly share code, notes, and snippets.

@fleepgeek
fleepgeek / awesome_carousel.dart
Last active January 31, 2024 09:20
Code for my YouTube Flutter Carousel tutorial
@fleepgeek
fleepgeek / animated_indexed_stack.dart
Created November 8, 2020 21:49
Animated IndexedStack
import 'package:flutter/material.dart';
class AnimatedIndexedStack extends StatefulWidget {
final int index;
final List<Widget> children;
const AnimatedIndexedStack({
Key key,
this.index,
this.children,
import 'package:flutter/material.dart';
class FadeIndexedStack extends StatefulWidget {
final int index;
final List<Widget> children;
final Duration duration;
const FadeIndexedStack({
Key key,
this.index,
@fleepgeek
fleepgeek / tween_and_curve_simulator.dart
Created September 16, 2020 21:58 — forked from funwithflutter/tween_and_curve_simulator.dart
Flutter example to demonstrate the chaining of Tweens and Cuves, plus creating your own Curves and Tweens classes.
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@fleepgeek
fleepgeek / clone_remote_branch.md
Created June 29, 2020 17:19 — forked from ff6347/clone_remote_branch.md
clone remote branch with git
@fleepgeek
fleepgeek / flutter_loading_animation.dart
Last active November 6, 2019 22:18
Code for my YouTube tutorial on creating loading animations in Flutter.
import 'dart:math' as math;
import 'package:flutter/material.dart';
/// The individual item to animate.
class Actor extends StatelessWidget {
final size;
const Actor({Key key, this.size = 20.0}) : super(key: key);
@fleepgeek
fleepgeek / friend_list.dart
Created October 2, 2019 20:41
Corresponding code for my YouTube tutorial series for learning the BLoC pattern
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@fleepgeek
fleepgeek / broadcast_basic.dart
Created October 2, 2019 16:51 — forked from hyamamoto/broadcast_basic.dart
Snippets to show basic use of "Dart Stream API" in case I forget. (written for dart-1.3.0-dev)
import 'dart:async';
void main() {
var data = [1,2,3,4,5];
var stream = new Stream.fromIterable(data);
var broadcastStream = stream.asBroadcastStream();
broadcastStream.listen((value) => print("(3)stream.listen: $value"));
broadcastStream.first.then((value) => print("(3)stream.first: $value")); // 1
@fleepgeek
fleepgeek / redux_plain.js
Last active September 7, 2019 18:56
A simple gist that uses redux without react.
// Quotes App
const { createStore } = require("redux");
// Reducer - updates the store
const initialState = [
{
author: "Walt Disney",
quote: "The way to get started is to quit talking and begin doing."
}
@fleepgeek
fleepgeek / gist:93cec4ecdbb2dfc98e4d10ab21d40305
Created September 6, 2019 13:03 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: