CLASSIC CAROUSEL SLIDER 💫
By using this package, you will be able to easily create a beautiful Carousel slider in flutter and use it on diffrent Os, here is the documantation about how to use it💡
🟢داکیومنت فارسی در مورد نحوه استفاده از این پکیج در ادامه آمده است🟢
How to use⁉️
set a classic Carousel slider: ✅
ClassicCarouselSlider(
currentPage: 0,
images: myImages,
height: 100,
width: 200,
);
}
}
The arguments needed for (ClassicCarouselSlider) 🟢
Parameter |
Type |
Description |
currentPage |
int |
required. shows the first image |
Parameter |
Type |
Description |
images |
List<String> |
required. addres of images in String |
Parameter |
Type |
Description |
hight |
double |
required. hight of the classic Carousel slider widget |
Parameter |
Type |
Description |
width |
double |
required. width of the classic Carousel slider widget |
Parameter |
Type |
Description |
selectedColor |
Color |
Optional. the color of selected state of indicators |
Parameter |
Type |
Description |
unSelectedColor |
Color |
Optional. the color of unSelected state of indicators |
⁉️نحوه استفاده
ابتدا ویجت منو مورد نظر را تعریف کنید: ✅
ClassicCarouselSlider(
currentPage: 0,
images: myImages,
height: 100,
width: 200,
);
}
}
(ClassicCarouselSlider) پارامتر های اجباری و اختیاری موجود برای استفاده در کلاس 🟢
پارامتر |
نوع |
توضیحات |
currentPage |
int |
اجباری. عدد تعیین کننده اولین تصویر |
پارامتر |
نوع |
توضیحات |
images |
List<Strings> |
اجباری. لیست تصاویر مد نظر به صورت رشته متنی |
پارامتر |
نوع |
توضیحات |
hight |
double |
اجباری. ارتفاع ویجت مورد نظر |
پارامتر |
نوع |
توضیحات |
width |
double |
اجباری. عرض ویجت مورد نظر |
پارامتر |
نوع |
توضیحات |
width |
double |
اختیاری. تنظیم عرض منو : |
پارامتر |
نوع |
توضیحات |
selectedColor |
color |
اختیاری. رنگ شمارنده های انتخاب شده در ویجت |
پارامتر |
نوع |
توضیحات |
unSelectedColor |
color |
اختیاری. رنگ شمارنده های انتخاب نشده در ویجت |
Author👦
License
MIT