From bc21e44a30d5aac13139f762e4154971b52c9df8 Mon Sep 17 00:00:00 2001 From: Github-actions Date: Thu, 1 Jul 2021 15:10:27 +0000 Subject: [PATCH] Automatic linting --- lib/widgets/workouts/day.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/widgets/workouts/day.dart b/lib/widgets/workouts/day.dart index c29507a7..51a6455c 100644 --- a/lib/widgets/workouts/day.dart +++ b/lib/widgets/workouts/day.dart @@ -141,7 +141,8 @@ class _WorkoutDayWidgetState extends State { setState(() { _sets.remove(set); }); - _sets = await Provider.of(context, listen: false).reorderSets(_sets, _startIndex); + _sets = await Provider.of(context, listen: false) + .reorderSets(_sets, _startIndex); Provider.of(context, listen: false).deleteSet(set); }, ), @@ -226,11 +227,11 @@ class _WorkoutDayWidgetState extends State { setState(() { _sets.insert(_newIndex, _sets.removeAt(_oldIndex)); }); - _sets = await Provider.of(context, listen: false).reorderSets(_sets, _startIndex); + _sets = await Provider.of(context, listen: false) + .reorderSets(_sets, _startIndex); }, children: [ - for (final _set in _sets) - getSetRow(_set), + for (final _set in _sets) getSetRow(_set), ], ), OutlinedButton(