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,
    );