FLUTTER ECOSYSTEM

medafox/parallax

medafox/parallax open-source repository details.

패러럴랙스 프로젝트 이미지
Stars
3
Forks
0
최근 푸시(UTC)
2022. 2. 3.
프로젝트 상태
활성
MEDAFOX GitHub avatar
GITHUB User

MEDAFOX ↗

언어DartCMakeC++HTMLCSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • flutter{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Parallax

A parallax package for touch-based devices, providing a visually appealing user experience.

example1 example2

Getting started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
    ...
    parallax: <latest_version>

Add the following import:

import 'package:parallax/parallax.dart';

Provide a required List<String> of images and change the remaining optional parameters to your liking. For example:

final List<String> listOfImages = [
    'images/image1.jpg',
    'images/image2.jpg'
];

Parallax(
      parallaxImages: listOfImages,
      skewAlpha: 3.0,
      skewBeta: 7.0,
      height: 300.0,
      width: 500.0,
      paddingHorizontal: 10.0,
      viewportFraction: 0.8,
      circularBorder: true,
    );