mirror of
https://github.com/flutter/flutter
synced 2024-10-16 21:22:57 +00:00
Fix analyzer warning
This commit is contained in:
parent
d6441b070c
commit
3d2e46acd2
|
@ -392,12 +392,12 @@ class CardCollectionState extends State<CardCollection> {
|
|||
|
||||
Shader _createShader(Rect bounds) {
|
||||
return new LinearGradient(
|
||||
begin: bounds.topLeft,
|
||||
end: bounds.bottomLeft,
|
||||
begin: const Offset(0.0, 0.0),
|
||||
end: const Offset(0.0, 1.0),
|
||||
colors: <Color>[const Color(0x00FFFFFF), const Color(0xFFFFFFFF)],
|
||||
stops: <double>[0.1, 0.35]
|
||||
)
|
||||
.createShader();
|
||||
.createShader(bounds);
|
||||
}
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
|
|
Loading…
Reference in a new issue