swipeable_card
게임이나 인터랙티브 온보딩 화면용 스와이프 가능한 카드형 위젯 추가
🂱 [개발 중] 부드럽게 스와이프 가능한 카드 스타일 위젯을 구현하기 위한 플러터 패키지
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Add swipeable card-like widgets for games or interactive onboarding screens
Pub PRs Welcome lic BMAC
SwipeableWidget (meant for high performance devices, like iPhones)SwipeableWidgetSlide (meant for lower performance devices, like older Android devices)SwipeableWidgetSlide to be addedCheck the repository if you're unable to see the demo.
Swipeable Widget is used in the following apps:
Add swipeable_card to your pubspec.yaml:
dependencies:
flutter:
sdk: flutter
# added below
swipeable_card: <latest version>
The swipeable widget has to be placed in a Column (or Row), for example:
Column(
children: <Widget>[
SwipeableWidget(
// parameters ...
child: someChildWidget(),
),
],
)
In the above example, replace someChildWidget() with the widget that can be swiped (for example, a playing card-like widget).
Warning: while SwipeableWidget is fast on iPhones, it can be quite slow for older Android devices. I am currently working on SwipeableWidgetSlide, an alternative which can be used for older Android devices.
Check out https://swipeable-card.now.sh/ for the full documentation (still a work in progress).
If you use the a swipeableWidgetController to automatically swipe the cards (without the user panning), you can only start swiping the next card away when the previous one is fully swiped away. To see a demo, run the example, and continuously tap the "Left" button at the bottom of the screen.
Apart from that, all the other problems from v0.0.x seem to be dealth with.
BSD 2-clause
Project start date: 1 May, 2020.