Fix analyzer warning

This commit is contained in:
Adam Barth 2016-03-02 10:14:56 -08:00
parent d6441b070c
commit 3d2e46acd2

View File

@ -392,12 +392,12 @@ class CardCollectionState extends State<CardCollection> {
Shader _createShader(Rect bounds) { Shader _createShader(Rect bounds) {
return new LinearGradient( return new LinearGradient(
begin: bounds.topLeft, begin: const Offset(0.0, 0.0),
end: bounds.bottomLeft, end: const Offset(0.0, 1.0),
colors: <Color>[const Color(0x00FFFFFF), const Color(0xFFFFFFFF)], colors: <Color>[const Color(0x00FFFFFF), const Color(0xFFFFFFFF)],
stops: <double>[0.1, 0.35] stops: <double>[0.1, 0.35]
) )
.createShader(); .createShader(bounds);
} }
Widget build(BuildContext context) { Widget build(BuildContext context) {