Skip to content

Explore the Flutter Parallax Swiper UI Challenge - a demo showcasing a custom widget with adjustable parallax effects, optional zoom and fade functionalities.

License

Notifications You must be signed in to change notification settings

monster555/flutter_parallax_swiper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Parallax Swiper UI Challenge

Overview

The Flutter Parallax Swiper UI Challenge showcases a dynamic parallax swiper widget, designed to elevate your user interface experiences. This widget allows you to create a horizontal swiper that displays a list of images with captivating parallax scrolling effects. Customize its behavior by providing image URLs, enabling drag-to-scroll, setting viewport fractions, adjusting padding, controlling the parallax factor, and toggling foreground fading and background zoom.

Flutter.Parallax.Swiper.mov

Example 1:

Using ParallaxSwiper with Default Values (Foreground Fading and Background Zoom Enabled):

ParallaxSwiper(
  images: [
    'image_url_1.jpg',
    'image_url_2.jpg',
    'image_url_3.jpg',
  ],
)

Example 2:

Using ParallaxSwiper with No Foreground Fading and No Background Zoom:

ParallaxSwiper(
  images: [
    'image_url_1.jpg',
    'image_url_2.jpg',
    'image_url_3.jpg',
  ],
  dragToScroll: true,
  viewPortFraction: 0.85,
  padding: EdgeInsets.all(16.0),
  parallaxFactor: 10.0,
  foregroundFadeEnabled: false, // Disable foreground image fading.
  backgroundZoomEnabled: false, // Disable background image zooming.
)

Usage

ParallaxSwiper(
  images: [
    'image_url_1.jpg',
    'image_url_2.jpg',
    'image_url_3.jpg',
  ],
  dragToScroll: true,
  viewPortFraction: 0.85,
  padding: EdgeInsets.all(16.0),
  parallaxFactor: 10.0,
  foregroundFadeEnabled: true,
  backgroundZoomEnabled: true,
)

Configuration Parameters

  • images (List<String>): The list of image URLs to display.
  • dragToScroll (bool): Enable or disable drag-to-scroll functionality.
  • viewPortFraction (double): Set the viewport fraction for image display.
  • padding (EdgeInsets): Define padding for the swiper.
  • parallaxFactor (double): Adjust the parallax factor to control scrolling effects.
  • foregroundFadeEnabled (bool): Toggle foreground image fading.
  • backgroundZoomEnabled (bool): Toggle background image zoom.

Contribution

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to create a pull request.

License

The Flutter Parallax Swiper UI Challenge is released under the MIT License. See LICENSE for details.

About

Explore the Flutter Parallax Swiper UI Challenge - a demo showcasing a custom widget with adjustable parallax effects, optional zoom and fade functionalities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published