You created CardSwiperController instance inside the CardSwiper. It should be the controller used in FloatingActionButton.