Skip to content

Commit

Permalink
Fix provider listening error
Browse files Browse the repository at this point in the history
  • Loading branch information
ferndot committed Mar 20, 2020
1 parent 0b68a31 commit 1af7f1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/ui/screens/checkup/checkup_progress_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class CheckupProgressBar extends StatelessWidget {
),
RaisedButton(
onPressed: () =>
Provider.of<PageController>(context).nextPage(
Provider.of<PageController>(context, listen: false)
.nextPage(
duration: Duration(milliseconds: 400),
curve: Curves.easeInOut,
),
Expand Down

0 comments on commit 1af7f1c

Please sign in to comment.