Commit Graph

30 Commits

Author SHA1 Message Date
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
Ricardo Dalarme f41897b13f refactor(lint): add new lint rules 2023-01-26 14:35:51 -03:00
Ricardo Dalarme 06ac501f9d feat(controller): allow swiping up and down 2023-01-24 15:28:55 -03:00
Ricardo Dalarme c5f5601c4a feat(type-safe): make all callbacks type-safe 2023-01-16 12:24:50 -03:00
Ricardo Dalarme 1368062e72 fix(render): never hide the back card 2023-01-15 23:25:11 -03:00
Ricardo Dalarme 3be74fff19 refactor(package): split the code into more files 2023-01-15 23:24:18 -03:00
Ricardo Dalarme 04b2346ad2 chore(package): change the base to the `appinio_swiper` package 2023-01-15 21:58:45 -03:00
Ricardo Dalarme 1bd59b9946 feat(types): make the callbacks type-safe 2023-01-13 23:46:21 -03:00
Ricardo Dalarme 3d1235dc96 change(build): remove unnused SizedBox 2023-01-13 23:39:28 -03:00
Ricardo Dalarme a25b9e0150 fix(controller): dispose animation controller 2023-01-13 23:30:14 -03:00
Ricardo Dalarme 0c556f393e refactor(code): move the CardsAnimation to a specific file 2023-01-13 21:58:56 -03:00
Ricardo Dalarme 037acfda1c feat(swipe): add option to disable horizontal swipes 2023-01-13 12:33:46 -03:00
Ricardo Dalarme 1b99984773 change: replace own `Direction` to native `AxisDirection` 2023-01-12 22:25:51 -03:00
Ricardo Dalarme 220952aa02 chore(project): move the source code to src folder 2023-01-12 22:25:51 -03:00