updated project style guidelines

This commit is contained in:
2024-04-03 19:18:17 +02:00
parent 27618f4404
commit 4c7f53e309
185 changed files with 505 additions and 873 deletions

View File

@ -29,8 +29,7 @@ class _AnimatedTimeState extends State<AnimatedTime> {
}
@override
Widget build(BuildContext context) {
return Row(
Widget build(BuildContext context) => Row(
children: [
const Text('Noch '),
buildWidget(current.inDays),
@ -42,10 +41,8 @@ class _AnimatedTimeState extends State<AnimatedTime> {
buildWidget(current.inSeconds > 60 ? current.inSeconds - current.inMinutes * 60 : current.inSeconds),
],
);
}
AnimatedDigitWidget buildWidget(int value) {
return AnimatedDigitWidget(
AnimatedDigitWidget buildWidget(int value) => AnimatedDigitWidget(
value: value,
duration: const Duration(milliseconds: 100),
textStyle: TextStyle(
@ -53,7 +50,6 @@ class _AnimatedTimeState extends State<AnimatedTime> {
color: Theme.of(context).colorScheme.onSurface,
),
);
}
@override
void dispose() {