This commit is contained in:
Hillel Coren 2019-02-12 15:37:51 +02:00
parent 4de74657a0
commit ba78b484bb
1 changed files with 1 additions and 4 deletions

View File

@ -128,10 +128,7 @@ class _TaskEditState extends State<TaskEdit>
? SizedBox() ? SizedBox()
: FloatingActionButton( : FloatingActionButton(
backgroundColor: Theme.of(context).primaryColorDark, backgroundColor: Theme.of(context).primaryColorDark,
onPressed: () { onPressed: () => viewModel.onFabPressed(),
viewModel.onFabPressed();
_controller.animateTo(kTimesScreen);
},
child: Icon( child: Icon(
task.isRunning ? Icons.stop : Icons.play_arrow, task.isRunning ? Icons.stop : Icons.play_arrow,
color: Colors.white, color: Colors.white,