mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix the crash for buttons.
Turns out there was a typo in lerpColor. Fixes #277.
This commit is contained in:
parent
82f5f14b98
commit
be5545cf28
@ -22,7 +22,7 @@ Color lerpColor(Color a, Color b, double t) {
|
||||
if (a == null && b == null)
|
||||
return null;
|
||||
if (a == null)
|
||||
return _scaleAlpha(b, t);
|
||||
return _scaleAlpha(a, t);
|
||||
if (b == null)
|
||||
return _scaleAlpha(b, 1.0 - t);
|
||||
return new Color.fromARGB(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user