/Flet-Image-Carousels

Image Carousels made with flet. Automatic Image Carousel + Basic Image Carousel

Primary LanguagePython

Flet Images Carousels

Images Carousles for Flet, python framework

  1. Automatic image carousel (UserControl) + example
  2. Basic image carousel (UserControl) + example

Automatic image carousel

Usage

The class takes in:

  • image_list:list[tuples] : list of tuples, each tuple is made of image and image description or only the image
  • perseverace_time:float : seconds of each image perseverance on screen
  • animations:list: list made of 2 animations, IN and OUT
  • descriptive:bool: specify if the carousel needs to show the images description.
    • default: True
    • [NOTE]: if the images_list's tuples do not contain the image description is needs to be set to False

Demo

descriptive: False descriptive: True
Screen.Recording.2023-02-11.at.12.35.05.mov
Screen.Recording.2023-02-11.at.12.35.36.mov

Basic image carousel

Usage

The class takes in:

  • image_list:list[tuples] : list of tuples, each tuple is made of image and image description or only the image
  • animations:list: list made of 2 animations, IN and OUT
  • descriptive:bool: specify if the carousel needs to show the images description.
    • default: True
    • [NOTE]: if the images_list's tuples do not contain the image description is needs to be set to False

Demo

descriptive: False descriptive: True
Screen.Recording.2023-02-12.at.12.32.00.mov
Screen.Recording.2023-02-12.at.12.42.06.mov