Commit Graph

74 Commits

Author SHA1 Message Date
JohnE d63bcd5c76 new: controller command of newStack(int length) to allow for expansion and deletion of card stack data 2024-11-12 20:13:16 -08:00
JohnE 5fb6777279 feat: support for tapping a card 2024-10-17 21:37:18 -07:00
Sreelal TS b4f66700b7 refactor: remove unnecessary methods in CardAnimation 2024-10-08 20:54:45 -03:00
Sreelal TS 1b61523dfe Swipe to an angle
Allow swiping to custom direction specified by an angle
2024-10-08 20:54:45 -03:00
ltOgt 99b30ff2d4 cancel controller subscription on dispose 2024-10-08 20:50:24 -03:00
Kalle Johansson 3b0796ca48
fix: prevent early dispose of CardSwiperController (#38)
Co-authored-by: Kalle Johansson <kalle.johansson.ext@Knowunity-0005.local>
2024-05-06 09:34:37 -03:00
ricardodalarme 1b3e905e82 feat(controller): add method to jump to index without animation (#25) 2024-01-28 14:40:11 -03:00
ricardodalarme a79449dfe6 feat: update controller to use stream 2024-01-28 14:36:32 -03:00
ricardodalarme 7b79e303f7 chore: upgrade min sdk version to 3.0.0 2024-01-28 14:36:32 -03:00
ricardodalarme b8e15e0e5b refactor: improve code organization 2024-01-28 14:36:32 -03:00
ricardodalarme 266f5f8628 fix(lint): format code with dart format 2024-01-09 21:06:22 -03:00
ricardodalarme bfd9185284 refactor: improve _onEndAnimation legibility 2024-01-09 15:07:06 -03:00
ricardodalarme b3ae883683 chore(lint): update lint rules 2024-01-09 14:48:01 -03:00
ricardodalarme 146ec762b2 feat: impove type inference 2024-01-09 14:47:23 -03:00
ricardodalarme c1b0ca39e3 feat(AllowedSwipeDirection): make only and symmetric const constructors 2024-01-09 14:47:13 -03:00
Husain Fadhilah 6df02e36ea
Fix: cannot access context in `onSwipe` when no cards left then "destroy" the widget tree (#29) 2024-01-09 14:38:03 -03:00
sarope 1f23f08ea1
feat: additional info to cardBuilder (#22)
Additional swiping info to cardBuilder callback
Add an additional callback containing the horizontal and vertical swipe direction 

Co-authored-by: samuel.peirson.knowunity <samuel.peirson@knowunity.com>
2023-06-26 16:04:31 -03:00
ricardodalarme 5b1a3f80c7 change: remove deprecated methods 2023-06-03 13:32:05 -03:00
ricardodalarme 44faeebb08 fix(lint): adjust lint errors 2023-05-15 11:27:53 -03:00
jawwadhassan b1c4faf998 fix: remove deprecated annotations from card_animation.dart 2023-05-11 18:29:25 +05:00
jawwadhassan 8b68e62f21 docs: bump the version in pubspec.yaml, update the docs in README.md and CHANGELOG.md 2023-05-11 18:08:18 +05:00
jawwadhassan fe77440a35 refactor: update allowedSwipeDirection param names 2023-05-11 17:35:18 +05:00
jawwadhassan 9976486d02 feat: add the functionality to allow swipes individually in left, right, up or/and down directions 2023-05-11 17:30:28 +05:00
Jawwad Hassan c55edd8d44 docs: update dart docs for scale scale and backCardOffset 2023-05-05 10:20:42 +05:00
Jawwad Hassan 347c9fdcd5 feat: add support for handling negative backCardOffset 2023-05-04 16:03:41 +05:00
Jawwad Hassan efed38b755 fix: card does not scale down after reaching 1.0 2023-05-04 10:14:56 +05:00
Jawwad Hassan 2a6f91ef8c fix: properly show the number of cards with respect to the numberOfCards param 2023-05-03 17:47:32 +05:00
Ricardo Dalarme b2dd0e001f
feat: allow customize the backcard offset (#12) 2023-05-01 13:57:53 -03:00
Andrea Valenzano 852480fb57
fix: remove controller dispose and add removeListener (#16) 2023-04-24 13:04:41 -03:00
kzrnm 095d46f21a
fix: swiping through the `controller` when `isDisable` is `true` (#15)
- When isDisable was true it wasn't possible to swipe using the controller
2023-04-17 22:33:04 -03:00
ricardodalarme 75d8ebe903 fix: pass the axis disabled to the card_animation (#13) 2023-04-12 00:13:43 -03:00
ricardodalarme 946d560b6f feat(callbacks): change `onSwipe` and `onEnd` to be FutureOr (#14) 2023-04-11 09:58:13 -03:00
ricardodalarme b5bb8f5c9a feat: add undo feature (#1) 2023-03-25 18:01:30 -03:00
ricardodalarme 8330f0bc80 refactor: add an animation layer to split responsibilities 2023-03-25 16:53:59 -03:00
ricardodalarme 5bf80d010a fix(onSwipe): fix onSwipe callback being called twice 2023-03-25 10:19:37 -03:00
ricardodalarme 33915ff416 docs: improve documentation 2023-03-23 23:28:51 -03:00
ricardodalarme 3d74bcedb2 refactor: remove generic type from CardSwiper
* After migrated to a builder function, the generic type is no longer
  needed.
2023-03-23 22:17:43 -03:00
Christian Richert 21ea7874ca
feat: onSwipe method can cancel the swipe (#9) 2023-03-23 22:11:42 -03:00
ricardodalarme 3b868d1875 feat: add option to set the initial index 2023-03-20 10:07:38 -03:00
ricardodalarme db500bf458 feat(cards): render the items through a builder callback 2023-03-18 17:14:03 -03:00
ricardodalarme 5edd21e371 feat(callback): add currentIndex and previoudIndex to `onSwipe` (#7) 2023-03-18 16:18:41 -03:00
giboin a8cbd3a110
feature: display more cards behind the first one (#6) 2023-03-18 14:43:24 -03:00
Ricardo Dalarme 7fdcb099d9 fix(stack): use the stack to render the items 2023-02-21 20:51:34 -03:00
Ricardo Dalarme 5f71cf9b4d feat: add option to control if the stack should loop 2023-02-20 20:14:14 -03:00
Ricardo Dalarme 4a8ea3afcf change(widget): make CardSwiper a generic of `Widget?` 2023-02-20 19:07:59 -03:00
giboin 4d261c9231 added possibility to enable swiping only on one axis (horizontal or vertical) 2023-02-20 14:05:45 -03:00
Ricardo Dalarme 7aa5ce6e56 refactor(code): avoid unnecessary imports 2023-01-27 14:20:35 -03:00
Ricardo Dalarme da53a10b88 feat(scale): allow changing the default scale of the back card 2023-01-27 13:47:49 -03:00
Ricardo Dalarme ed0206f06e refactor(logic): simplify some operations 2023-01-27 13:30:00 -03:00
Ricardo Dalarme c912e00c07 change(perfomance): remove unnecessary setStates 2023-01-27 13:25:37 -03:00