From 1af7f1ce17be7da508d3cdc5a17986d8aeb2bdc2 Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Thu, 19 Mar 2020 23:43:40 -0700 Subject: [PATCH] Fix provider listening error --- lib/src/ui/screens/checkup/checkup_progress_bar.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/ui/screens/checkup/checkup_progress_bar.dart b/lib/src/ui/screens/checkup/checkup_progress_bar.dart index 6876318..a63a466 100644 --- a/lib/src/ui/screens/checkup/checkup_progress_bar.dart +++ b/lib/src/ui/screens/checkup/checkup_progress_bar.dart @@ -39,7 +39,8 @@ class CheckupProgressBar extends StatelessWidget { ), RaisedButton( onPressed: () => - Provider.of(context).nextPage( + Provider.of(context, listen: false) + .nextPage( duration: Duration(milliseconds: 400), curve: Curves.easeInOut, ),