Last active
June 23, 2018 04:05
-
-
Save hnvn/bb21fa3e5697f49aeadb113b013cc555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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