carousel_widget_3d

Creator: coderz1093

Last updated:

0 purchases

carousel_widget_3d Image
carousel_widget_3d Images

Languages

Categories

Add to Cart

Description:

carousel widget 3d

3D carousel #
The package provides a widget that displays user data as 3d carousel

Getting started #


Add package to pubspec.yaml
carousel_3d: 1.0.0


Import it to file where it is going to be used


Create carousel_3d and provide required attributes


Carousel3d(
center: _center,
items: [
<items to display>
],
)
copied to clipboard
Where center is a state that controls which element is central in carousel.
By changing center the carousel is rotated so that any event can be associated with carousel rotation
Usage #
Display 5 different images in carousel
Carousel3d(
center: _center,
items: [
Image.assets('assets/img_1.png'),
Image.asset('assets/img_2.png'),
Image.asset('assets/img_3.png'),
Image.asset('assets/img_4.png'),
Image.asset('assets/img_5.png'),
],
)
copied to clipboard
Result

Additional information #
Parameters:
center - index of the current central element
items - widgets to display in carousel
duration - duration of carousel animations
displayRadius - how much items displayed on each side from central item

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.