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/rendering.dart'; | |
class _Shimmer extends SingleChildRenderObjectWidget { | |
final Gradient gradient; | |
_Shimmer({Widget child, this.gradient}) | |
: super(child: child); | |
@override | |
_ShimmerFilter createRenderObject(BuildContext context) { |
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 |
NewerOlder