Unverified Commit 0220412c authored by Amir Hardon's avatar Amir Hardon Committed by GitHub

Fix analyzer "prefer const" warning. (#25854)

parent 63b2daff
...@@ -13,7 +13,7 @@ class _CullOpacityPageState extends State<CullOpacityPage> with SingleTickerProv ...@@ -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(() {});
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment