mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 20:25:26 +00:00
Format code
This commit is contained in:
@ -2,7 +2,6 @@ import "package:flutter/material.dart";
|
||||
import "package:inventree/app_colors.dart";
|
||||
|
||||
class Spinner extends StatefulWidget {
|
||||
|
||||
const Spinner({
|
||||
this.color = COLOR_GRAY_LIGHT,
|
||||
Key? key,
|
||||
@ -27,12 +26,8 @@ class _SpinnerState extends State<Spinner> with SingleTickerProviderStateMixin {
|
||||
_controller = AnimationController(
|
||||
vsync: this,
|
||||
duration: Duration(milliseconds: 2000),
|
||||
)
|
||||
..repeat();
|
||||
_child = Icon(
|
||||
widget.icon,
|
||||
color: widget.color
|
||||
);
|
||||
)..repeat();
|
||||
_child = Icon(widget.icon, color: widget.color);
|
||||
|
||||
super.initState();
|
||||
}
|
||||
@ -50,4 +45,4 @@ class _SpinnerState extends State<Spinner> with SingleTickerProviderStateMixin {
|
||||
child: _child,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user