Skip to content

Instantly share code, notes, and snippets.

View erikwco's full-sized avatar
💻
building the next world wide hit!

Erik Chacon erikwco

💻
building the next world wide hit!
View GitHub Profile
@erikwco
erikwco / animated_pgbutton.dart
Created May 16, 2019 17:34
Animated Button 0
import 'package:flutter/material.dart';
class AnimatedProgressButton extends StatefulWidget {
@override
_AnimatedProgressButtonState createState() => _AnimatedProgressButtonState();
}
class _AnimatedProgressButtonState extends State<AnimatedProgressButton>{
@override
void initState() {
@erikwco
erikwco / animated_pgbutton.dart
Last active May 16, 2019 17:31
Flutter Progress Bar Button Widget - 0
import 'dart:async';
import 'package:flutter/material.dart';
class AnimatedProgressButton extends StatefulWidget {
@override
_AnimatedProgressButtonState createState() => _AnimatedProgressButtonState();
}
class _AnimatedProgressButtonState extends State<AnimatedProgressButton>
with SingleTickerProviderStateMixin
@erikwco
erikwco / animated_pgbutton.dart
Last active May 16, 2019 17:14
Animation Definition for our button
// Defining Animations and Animation Controller
Animation<double> _animatedSize;
Animation<Color> _animatedColor;
AnimationController _boss;
// Initialize Animations and AnimationController
@override
void initState() {
super.initState();
// AnimationController
@erikwco
erikwco / main.dart
Created May 15, 2019 04:38
Flutter Progress Bar Button - 0
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(

Keybase proof

I hereby claim:

  • I am erikwco on github.
  • I am erikwco (https://keybase.io/erikwco) on keybase.
  • I have a public key whose fingerprint is 18F7 6D6D 3A8E 888F FF07 373B C271 7866 0657 B6E3

To claim this, I am signing this object:

@erikwco
erikwco / main.css
Created October 6, 2013 22:45
ResponsiveBreakPoints
/* 320 px */
@media screen and (min-width: 20em) {
}
/* 480 px */
@media screen and (min-width: 30em) {
}