Skip to content

Commit

Permalink
Merge pull request #39 from emem365/master
Browse files Browse the repository at this point in the history
Fixing Drawer issue #37
  • Loading branch information
mitesh77 committed Jul 17, 2020
2 parents 8604f28 + fd48309 commit 0101c9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class _DrawerUserControllerState extends State<DrawerUserController> with Ticker
});
}
iconAnimationController.animateTo(0.0, duration: const Duration(milliseconds: 0), curve: Curves.fastOutSlowIn);
} else if (scrollController.offset > 0 && scrollController.offset < widget.drawerWidth) {
} else if (scrollController.offset > 0 && scrollController.offset < widget.drawerWidth.floor()) {
iconAnimationController.animateTo((scrollController.offset * 100 / (widget.drawerWidth)) / 100,
duration: const Duration(milliseconds: 0), curve: Curves.fastOutSlowIn);
} else if (scrollController.offset <= widget.drawerWidth) {
} else {
if (scrolloffset != 0.0) {
setState(() {
scrolloffset = 0.0;
Expand Down

0 comments on commit 0101c9c

Please sign in to comment.