Skip to content

Commit

Permalink
Merge pull request #6 from ghaith96/flutter
Browse files Browse the repository at this point in the history
potential fix for Issue #3
  • Loading branch information
urmilshroff authored Aug 13, 2019
2 parents 1df4a53 + 23bc1e1 commit 685cac2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/pages/goals_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ class _GoalsPageState extends State<GoalsPage> {
),
color: invertColors(context),
onPressed: () {
_myPage.jumpToPage(0);
_myPage.animateToPage(
0,
curve: Curves.easeOut,
duration: Duration(milliseconds: 300),
);
},
),
IconButton(
Expand All @@ -246,7 +250,11 @@ class _GoalsPageState extends State<GoalsPage> {
),
color: invertColors(context),
onPressed: () {
_myPage.jumpToPage(1);
_myPage.animateToPage(
1,
curve: Curves.easeOut,
duration: Duration(milliseconds: 300),
);
},
),
],
Expand Down

0 comments on commit 685cac2

Please sign in to comment.