Fix analyzer "prefer const" warning. (#25854)
This commit is contained in:
parent
63b2daff7f
commit
0220412c53
@ -13,7 +13,7 @@ class _CullOpacityPageState extends State<CullOpacityPage> with SingleTickerProv
|
|||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
_controller = AnimationController(vsync: this, duration: Duration(seconds: 2));
|
_controller = AnimationController(vsync: this, duration: const Duration(seconds: 2));
|
||||||
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener((){
|
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener((){
|
||||||
setState(() {});
|
setState(() {});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user