BannerCarousel.fullScreen constructor
const
BannerCarousel.fullScreen({
- Key? key,
- List<
BannerModel> ? banners, - double height = 150,
- double borderRadius = 0,
- double viewportFraction = 1.0,
- int initialPage = 0,
- Color? disableColor,
- ValueChanged<
int> ? onPageChanged, - bool indicatorBottom = true,
- dynamic onTap(
- String id
- bool showIndicator = true,
- Color? activeColor,
- bool animation = true,
- List<
Widget> ? customizedBanners, - IndicatorModel customizedIndicators = _indicatorModel,
- PageController? pageController,
BannersCarousel.fullScreen(banners: BannerImages.listBanners),
Implementation
const BannerCarousel.fullScreen({
Key? key,
this.banners,
this.height = 150,
this.borderRadius = 0,
this.viewportFraction = 1.0,
this.initialPage = 0,
this.disableColor,
this.onPageChanged,
this.indicatorBottom = true,
this.onTap,
this.showIndicator = true,
this.activeColor,
this.animation = true,
this.customizedBanners,
this.customizedIndicators = _indicatorModel,
this.pageController,
}) : this.width = double.maxFinite,
this.spaceBetween = 0.0,
this.margin = EdgeInsets.zero,
assert(banners != null || customizedBanners != null,
'banners or customizedBanners need to be implemented'),
assert(
banners == null || customizedBanners == null,
'Cannot provide both a banners and a customizedBanners\n'
'Choose only one to implement'),
super(key: key);