Skip to content

Instantly share code, notes, and snippets.

View philipodev's full-sized avatar
🐞
Merging bugs to main

Philip Andersson philipodev

🐞
Merging bugs to main
View GitHub Profile
@kangabru
kangabru / animation_widgets.dart
Last active January 2, 2021 12:41
A couple of handy Flutter widgets I use for animations.
import 'package:flutter/material.dart';
import './animation_mixins.dart'; // See my other gist for this
// Ímplicitly animates an int to the given value.
class AnimatedInt extends StatelessWidget {
final int value;
final Duration duration; // milliseconds
final TextStyle style;
AnimatedInt({
@required this.value,