분류, 패키지 및 저장소 검색

horizontal_card_pager 표지
패키지 상세v1.1.1

horizontal_card_pager

동적이고 아름다운 카드 뷰 페이지러(수평 방향)를 사용하여 훌륭한 앱을 만들 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
183
좋아요
173
Pub 점수
140

패키지 설치

flutter pub add horizontal_card_pager

패키지 개요

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

동적이고 시각적으로 매력적인 수평 카드 페이저를 생성하기 위한 플러터 패키지입니다. 수평 레이아웃에서 부드럽고 상호작용 가능한 카드 전환을 가능하게 하며, 이미지, 카드 또는 제품 목록과 같은 콘텐츠를 보여주는 데 이상적입니다. 사용자 정의 애니메이션 및 여러 플랫폼에서 반응형 디자인을 지원합니다. 현대적인 미학을 가진 매력적인 스와이프 가능한 카드 인터페이스가 필요한 앱에 완벽합니다.

사용 사례

  • 스와이프 가능한 제품 캐러셀
  • 이미지 갤러리
  • 인터랙티브 콘텐츠 슬라이더
  • 온보딩 화면
  • 기능 강조 섹션
  • 사용자 프로필 소개

주요 기능

  • 수평 카드 탐색
  • 부드러운 애니메이션 전환
  • 사용자 지정 가능한 카드 스타일
  • 반응형 디자인 지원
  • 크로스 플랫폼 호환성
  • 동적 콘텐츠 로드

적합한 대상

  • 모바일 앱 개발자
  • UI/UX 디자이너
  • 전자상거래 애플리케이션
  • 콘텐츠가 풍부한 앱
  • 인터랙티브 프로토타입

고려 사항

  • 대규모 데이터 세트에 대한 신중한 성능 튜닝이 필요합니다
  • 무한 스크롤을 위해 추가 로직이 필요할 수 있습니다
  • 제한된 내장 페이지네이션 표시기
  • 중간 카드 수에 가장 적합
  • 세로 레이아웃에 최적화되지 않음
  • 고급 기능을 위해 외부 종속성에 의존합니다

원본 README

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

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Preview

Mobile
Web

Installing

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dartlang.org

dependencies:
    horizontal_card_pager: ^1.1.1
  1. Import the package
import 'package:horizontal_card_pager/horizontal_card_pager.dart';
import 'package:horizontal_card_pager/card_item.dart';
  1. Adding HorizontalCardPager

With optional parameters

HorizontalCardPager(
    initialPage : 2 // default value is 2
    onPageChanged: (page) => print("page : $page"),
    onSelectedItem: (page) => print("selected : $page"),
    items: { ... },  // set ImageCardItem or IconTitleCardItem class
))
  1. Put CardItem object in items parameter in HorizontalCardPager

If the contents of the card contain only images, use the ImageCardItem class. and If the contents of the card include an icon and a title, use the IconTitleCardItem class.

Image Icon & Text
imagetype icontitletype
ImageCardItem

class ImageCarditem extends CardItem {
  final Widget image;

  ImageCarditem({this.image});
}
IconTitleCardItem
class IconTitleCardItem extends CardItem {
  final IconData iconData;
  final String text;
  final Color selectedBgColor;
  final Color noSelectedBgColor;
  final Color selectedIconTextColor;
  final Color noSelectedIconTextColor;

  IconTitleCardItem(
      {this.iconData,
      this.text,
      this.selectedIconTextColor = Colors.white,
      this.noSelectedIconTextColor = Colors.grey,
      this.selectedBgColor = Colors.blue,
      this.noSelectedBgColor = Colors.white});
}

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Reference

This package's animation is inspired from from this Dribbble art.

TODO

  • [x] Attach Gesture Detector
  • [x] implement call back method
  • [x] Enable to customize card design
    • [x] icon & title
    • [x] image only
  • [x] Implements sample app
  • [x] Publish plugin

카테고리

소스 저장소

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

아직 데이터가 없습니다.