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

패키지 상세v1.0.2

parallax_cards

스크롤링 파라락스 효과 및 사용자 정의 카드 오버레이를 위한 Flutter 패키지

AndroidiOSmacOSWindowsLinux
30일 다운로드
92
좋아요
94
Pub 점수
160

패키지 설치

flutter pub add parallax_cards

패키지 개요

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

ParallaxCards는 Flutter 패키지로 앱에서 부드러운 스크롤 파라락스 효과와 사용자 정의 가능한 카드 오버레이를 가능하게 합니다. 사용자가 콘텐츠를 스크롤할 때 동적이고 시각적으로 매력적인 카드 전환을 만들어 사용자 참여도를 높입니다. 컬렉션, 커버 플로우 또는 인터랙티브 갤러리에 적합하며 Android, iOS, macOS, Windows 및 Linux 등 여러 플랫폼을 지원합니다. 개발자는 카드 외관, 깊이 및 애니메이션 동작을 쉽게 맞춤설정할 수 있습니다. pub add를 통해 최소한의 설정으로 기존 Flutter 프로젝트에 원활하게 통합됩니다.

사용 사례

  • 인터랙티브 제품 쇼케이스
  • 다이나믹 이미지 슬라이더
  • 매력적인 온보딩 화면
  • 시각적 데이터 대시보드
  • 모바일 앱 탐색 인터페이스

주요 기능

  • 스무스한 파라럭스 스크롤링
  • 사용자 정의 가능한 카드 오버레이
  • 크로스 플랫폼 지원
  • pub과의 간편한 통합
  • 사용자 정의 가능한 깊이 및 애니메이션
  • 반응형 디자인 처리

적합한 대상

  • 인터랙티브 UI를 구축하는 개발자
  • 시각적 깊이를 찾는 디자이너
  • 콘텐츠가 풍부한 캐러셀을 갖춘 앱
  • 매력적인 스크롤 효과가 필요한 프로젝트
  • Flutter 초보자가 애니메이션 탐색 중

고려 사항

  • 저사양 기기에서 성능에 영향을 미칠 수 있습니다
  • 애니메이션 매개변수를 신중하게 조정해야 합니다
  • 기본 예제를 넘어서는 문서가 제한적입니다
  • 매우 큰 데이터 세트에 최적화되지 않음
  • 중간 카드 수에 가장 적합

원본 README

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

Parallax Cards

A Flutter package for scrolling parallax effect and custom card overlays

Getting started

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  parallax_cards: ^1.0.1
2. Install it

Install it from the command line:

$ flutter pub get
3. Import it

Now in your project you can use:

import 'package:parallax_cards/parallax_cards.dart';

Usage

ParallaxCards is a Stateless Widget which you can include in your widget tree. You can use it either vertically or horizontally by overriding the scrollDirection property:

Horizontal scroll view
ParallaxCards(
  scrollDirection: Axis.horizontal,
  imagesList: imagesList,
  width: 250,
  height: 350,
  onTap: (index) {
    log('$index pressed');
  },
),

img

Vertical scroll view

You can customize the card overlays according to your preferences by overriding the overlays property. However, ensure that the lengths of imageList and overlays are equal.

ParallaxCards(
                imagesList: imagesList,
                width: double.infinity,
                height: 200,
                onTap: (index) {
                  ScaffoldMessenger.of(context).showSnackBar(SnackBar(
                    content: Text("$index tapped"),
                    duration: const Duration(milliseconds: 500),
                  ));
                },
                overlays: [
                  for (var title in titlesList)
                    Stack(
                      children: [
                        Positioned.fill(
                          child: DecoratedBox(
                            decoration: BoxDecoration(
                              gradient: LinearGradient(
                                colors: [
                                  Colors.transparent,
                                  Colors.black.withOpacity(0.8)
                                ],
                                stops: const [0.5, 0.9],
                                begin: Alignment.topCenter,
                                end: Alignment.bottomCenter,
                              ),
                            ),
                          ),
                        ),
                        Positioned(
                          left: 16,
                          bottom: 12,
                          child: Text(
                            title,
                            style: const TextStyle(
                                fontSize: 22,
                                color: Colors.white,
                                fontWeight: FontWeight.bold),
                          ),
                        ),
                      ],
                    )
                ],
              ),

img

Additional information

Feel free to open an issue if you encounter any bugs or challenges. Pull requests are welcome!

카테고리

소스 저장소

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

아직 데이터가 없습니다.