From 4a8ea3afcf910f7e6cf7ae2d0073eaf66dcd0e3f Mon Sep 17 00:00:00 2001 From: Ricardo Dalarme Date: Mon, 20 Feb 2023 19:01:11 -0300 Subject: [PATCH] change(widget): make CardSwiper a generic of `Widget?` --- lib/src/card_swiper.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/card_swiper.dart b/lib/src/card_swiper.dart index 82cbc14..37e9c5f 100644 --- a/lib/src/card_swiper.dart +++ b/lib/src/card_swiper.dart @@ -5,9 +5,9 @@ import 'package:flutter_card_swiper/src/card_swiper_controller.dart'; import 'package:flutter_card_swiper/src/enums.dart'; import 'package:flutter_card_swiper/src/typedefs.dart'; -class CardSwiper extends StatefulWidget { +class CardSwiper extends StatefulWidget { /// list of widgets for the swiper - final List cards; + final List cards; /// controller to trigger actions final CardSwiperController? controller; @@ -83,10 +83,10 @@ class CardSwiper extends StatefulWidget { super(key: key); @override - State createState() => _CardSwiperState(); + State createState() => _CardSwiperState(); } -class _CardSwiperState extends State +class _CardSwiperState extends State> with SingleTickerProviderStateMixin { double _left = 0; double _top = 0;