fix syntax error

This commit is contained in:
Pato05 2024-03-31 21:52:54 +02:00
parent 8b10eb80c7
commit b5df20735e
No known key found for this signature in database
GPG Key ID: ED4C6F9C3D574FB6
1 changed files with 2 additions and 10 deletions

View File

@ -31,8 +31,7 @@ class _AnimatedBarsState extends State<AnimatedBars>
@override
Widget build(BuildContext context) {
final color = widget.color ?? Theme.of(context).colorScheme.onSurface;
final r = Random();
final count = 3;
const count = 3;
AnimatedIcons.search_ellipsis;
return SizedBox.square(
dimension: widget.size,
@ -44,14 +43,7 @@ class _AnimatedBarsState extends State<AnimatedBars>
width: widget.size / count,
child: Align(
alignment: Alignment.bottomCenter,
child: SizeTransition(
sizeFactor: Tween(begin: 1.0, end: 0.2)..animate(
CurvedAnimation(
parent: _controller.,
curve: Interval(0.1 * index, 0.3 * index,
curve: Curves.easeIn))),
axisAlignment: 1.0,
child: Container(color: color)),
child: Container(color: color),
),
)),
));