updated project style guidelines
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user