mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Format Code and Add Format Checks to CI (#643)
* Remove unused lib/generated/i18n.dart * Use `fvm dart format .` * Add contributing guidelines * Enforce dart format * Add `dart format off` directive to generated files
This commit is contained in:
parent
e9db6532e4
commit
4444884afa
100 changed files with 5332 additions and 5592 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
@ -45,9 +40,6 @@ class _SpinnerState extends State<Spinner> with SingleTickerProviderStateMixin {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RotationTransition(
|
||||
turns: _controller!,
|
||||
child: _child,
|
||||
);
|
||||
return RotationTransition(turns: _controller!, child: _child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue