fix syntax error
This commit is contained in:
parent
8b10eb80c7
commit
b5df20735e
|
|
@ -31,8 +31,7 @@ class _AnimatedBarsState extends State<AnimatedBars>
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final color = widget.color ?? Theme.of(context).colorScheme.onSurface;
|
final color = widget.color ?? Theme.of(context).colorScheme.onSurface;
|
||||||
final r = Random();
|
const count = 3;
|
||||||
final count = 3;
|
|
||||||
AnimatedIcons.search_ellipsis;
|
AnimatedIcons.search_ellipsis;
|
||||||
return SizedBox.square(
|
return SizedBox.square(
|
||||||
dimension: widget.size,
|
dimension: widget.size,
|
||||||
|
|
@ -44,14 +43,7 @@ class _AnimatedBarsState extends State<AnimatedBars>
|
||||||
width: widget.size / count,
|
width: widget.size / count,
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
child: SizeTransition(
|
child: Container(color: color),
|
||||||
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)),
|
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue