패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.2

swipeable_card

게임이나 인터랙티브 온보딩 화면용 스와이프 가능한 카드형 위젯 추가

30일 다운로드
41
좋아요
57
Pub 점수
35

패키지 설치

flutter pub add swipeable_card

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

swipeable_card 패키지는 개발자가 왼쪽 또는 오른쪽으로 스와이프할 수 있는 인터랙티브한 카드형 위젯을 만들 수 있게 해주며, 틴더 스타일의 인터페이스를 구현하는 데 이상적입니다. 게임, 온보딩 흐름, 또는 카드 간의 제스처 기반 탐색이 필요한 모든 UI에 특히 유용합니다. 최소한의 설정으로 부드러운 애니메이션과 직관적인 스와이프 제스처를 제공합니다. 사용자 정의 카드 콘텐츠 및 스와이프 동작을 지원하여 다양한 용도에 유연하게 대응할 수 있습니다. Flutter로 구축되어 있으며, 기존 프로젝트에 쉽게 통합됩니다.

사용 사례

  • 인터랙티브 온보딩 화면
  • 타인더 스타일의 매칭 인터페이스
  • 게임 카드 메커니즘
  • 스와이프 기반 탐색
  • 사용자 선호도 수집
  • 동적 콘텐츠 탐색

주요 기능

  • 제스처 기반 스와이프 상호작용
  • 부드러운 애니메이션 전환
  • 사용자 정의 가능한 카드 콘텐츠
  • Flutter와의 간단한 통합
  • 좌우 스와이프 동작을 지원합니다
  • 경량이고 성능이 뛰어남

적합한 대상

  • 인터랙티브 UI를 구축하는 개발자
  • 온보딩 화면 생성자
  • 게임 개발자
  • 모바일 앱 디자이너
  • 간단한 제스처를 찾는 플러터 초보자
  • 스와이프 기반 사용자 입력이 필요한 앱

고려 사항

  • 수평 스와이프만 가능
  • 수직 스와이프에 내장된 지원 없음
  • 스와이프 결과를 수동으로 처리해야 합니다
  • 대규모 카드 목록에 최적화되지 않음
  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 업데이트를 위해 외부 GitHub 저장소에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Swipeable Card (v1.x.x)

Add swipeable card-like widgets for games or interactive onboarding screens

Pub PRs Welcome lic BMAC

Contents

🎮 Examples

Demo
SwipeableWidget (meant for high performance devices, like iPhones)
Demo 1
SwipeableWidgetSlide (meant for lower performance devices, like older Android devices)
  • Demo of SwipeableWidgetSlide to be added

Check the repository if you're unable to see the demo.

App examples

Swipeable Widget is used in the following apps:

  • Shots
  • Create a PR to add your own!

📒 Documentation

Installation

Add swipeable_card to your pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter

  # added below
  swipeable_card: <latest version>
Adding to your app

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).

😐 Issues and limitations

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.

License

BSD 2-clause

📝 Other information

Project start date: 1 May, 2020.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.