Skip to content

Instantly share code, notes, and snippets.

@hnvn
Last active June 23, 2018 04:05
Show Gist options
  • Save hnvn/bb21fa3e5697f49aeadb113b013cc555 to your computer and use it in GitHub Desktop.
Save hnvn/bb21fa3e5697f49aeadb113b013cc555 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class Shimmer extends StatefulWidget {
final Widget child;
final Duration period;
final Gradient gradient;
Shimmer({Key key, this.child, this.period, this.gradient}): super(key: key);
@override
_ShimmerState createState() => _ShimmerState();
}
class _ShimmerState extends State<Shimmer> {
@override
Widget build(BuildContext context) {
return _Shimmer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment