Digia Academy
Digia StudioDiscordLinkedIn
  • Introduction
    • FAQs
  • What's New
    • 2024
      • March
  • DIGIA STUDIO INTRODUCTION
    • Dashboard
    • Builder Tool
      • Navigation Menu
      • Tool Bar
      • Pages and Widgets Panel
      • Canvas Area
      • Properties Panel
    • Creating a New Project
    • Creating new Pages
    • Working with Widget Tree
    • Build Your First App
      • Hello World
      • Bytes App
        • Onboarding
        • Defining API Calls
        • Courses
        • Articles
        • Viewing your App
    • SDK Integration
      • Insert Single Pages from Digia Studio
  • Actions
    • Call API Rest Action
    • Call Rest API
    • Pop Current
    • Pop to Route
    • openUrl
    • Go To Page
    • Post Message
    • Set Page State
    • Wait (delay)
    • Drawer
    • Toast
    • Open Dialog
    • Share
    • Copy to Clipboard
  • Operations
    • API Call
    • Operators
      • Json Operators
      • Logical Operators
      • Date Time Operators
      • Math Operators
      • String Operations
  • BUILDING UI
    • Widgets
      • Form Widgets
        • PinField
        • Calendar
        • Text Form Field
      • Base Widgets
        • Animated Button
        • Check Box
        • Video Player
        • Spacer
        • Stack
        • Wrap
        • Text
        • Avatar
        • Rich Text
        • Image
        • Button
        • Icon
        • Switch
        • Sized Box
        • HtmlView
        • Lottie Animation
        • Linear Progress Bar
        • YouTube Player
        • Circular Progress Bar
      • Layout Widgets
        • ListView
        • Web View
        • Future Builder
        • Conditional Builder
        • Stream Builder
        • GridView
        • Column
        • Row
        • Container
        • Expandable
        • Divider (Horizontal)
        • Divider (Vertical)
        • Carousel
      • Persistent Footers Widgets
        • NavigationBar Widget
      • Page Widgets
        • Stepper Widget
        • Scaffold Widget
        • Paginated Listview Widget
        • TabView
        • AppBar
      • Widget Commonalities
    • Event Handlers
  • Theme
    • Colors
    • Typography
  • DATA AND BACKEND
    • API Calls
      • Setting up API Calls
      • Create API Calls
      • Import API From Curl
  • DEPLOYING YOUR APP
    • Deployment
    • Release History
  • Settings
    • App Settings
    • App Assets
    • Media Assets
  • JARGON
    • Data integration
Powered by GitBook
On this page
  • Adding Carousel widget
  • Customizing
  • Aspect ratio
  • Initial page index
  • Enlarge center page
  • Loop carousel contents
  • Viewport Fraction
  • Autoplay
  1. BUILDING UI
  2. Widgets
  3. Layout Widgets

Carousel

PreviousDivider (Vertical)NextPersistent Footers Widgets

Last updated 1 year ago

The Carousel widget, often called an image slider, is a popular design element used to display a series of images or content in a horizontal or sometimes vertical format. The primary purpose of a carousel slider is to showcase multiple pieces of information, such as images, product features, news articles, or testimonials, within limited screen space.

Adding Carousel widget

To add the Carousel widget to your app:

  1. Add the Carousel widget from the Widget Tree section.

  2. In the widget tree, it is represented as Carousel. To add it to your page you need to select it from Choose widget dialog box.

Customizing

You can customize the appearance and behavior of this widget using the various properties available under the properties panel.

Aspect ratio

Aspect ratio is used if no height have been declared. The default value of aspect ratio is 16:9 i.e. 1.78. In case you want height equal to width then aspect ratio will be 1.

Initial page index

You might want to display a specific slide as soon as it is loaded. To do so, move to the Widget Properties Panel enter the Initial Page Index value. Please note that the slide index starts from 0. So, if you want to set slide 1, you should enter 0. If you want to set slide 2, you should enter 1, and so on.

Enlarge center page

By default, the center page in not enlarged i.e. all the pages are having same size. To enlarge the center page , turn on to switch in the properties panel named as Enlarge center page as shown in the image below.

Loop carousel contents

By default, the content of the carousel does not loop continuously. To start the loop of contents , move to the Widget properties panel and turn on the Enable infinite scroll switch.

Viewport Fraction

This is the fraction of the viewport that each page should occupy. You can use the Viewport Fraction to change the size of a single item, i.e., the item in the center. Defaults to 0.8, which means each page fills 80% of the carousel.

Autoplay

When autoplay is enable, the carousel will automatically transition from one slide to the next at regular intervals, determined by the following options:

  • Auto Play Animation Duration: The amount of time (in milliseconds) that it takes to transition from the current slide to the next. By default, the value of auto play animation duration is 800 milliseconds.

  • Auto Play Interval: The amount of time (in milliseconds) that the item remains in the center before moving to the next one. By default, the value of auto play intervar is 1600 milliseconds.