forked from ricardodalarme/flutter_card_swiper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(controller): add method to jump to index without animation (rica…
- Loading branch information
1 parent
a79449d
commit 1b3e905
Showing
6 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import 'package:flutter_card_swiper/flutter_card_swiper.dart'; | ||
|
||
abstract class ControllerEvent { | ||
sealed class ControllerEvent { | ||
const ControllerEvent(); | ||
} | ||
|
||
class ControllerSwipeEvent extends ControllerEvent { | ||
final CardSwiperDirection direction; | ||
|
||
const ControllerSwipeEvent(this.direction); | ||
} | ||
|
||
class ControllerUndoEvent extends ControllerEvent { | ||
const ControllerUndoEvent(); | ||
} | ||
|
||
class ControllerMoveEvent extends ControllerEvent { | ||
final int index; | ||
const ControllerMoveEvent(this.index); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters