banner_widget 1.0.1 copy "banner_widget: ^1.0.1" to clipboard
banner_widget: ^1.0.1 copied to clipboard

banner_widget is a new Flutter widget,which support you customization whatever you want.

banner_widget #


banner_widget is a new Flutter widget,which support you customization whatever you want.


How to Use #

# add this line to your dependencies
banner_widget: ^1.0.1
 BannerWidget(data,
                duration: 2000,
                height: 200.0,
                selectedColor: Colors.red,
                unSelectedColor: Colors.white,
                onBannerItemClick: (int position, BannerItem item) {
                  Fluttertoast.showToast(
                      msg: 'index=$position banner is clicked!',
                      toastLength: Toast.LENGTH_LONG);
                },
                build: null,
                descriptionBackgroundColor: const Color(0x33000000),
                textInfoDirect: InfoDirect.HORIZONTAL,
                circleRadius: 5.0,
                indicatorStyle: IndicatorStyle.ELLIPTICAL,
                ellipticalWidth: 16.0,
                ellipticalHeight: 8.0,
                cornerRadius: 10.0),

API #

property description defaultValue
duration int 2000
height double 200.0
selectedColor Color Colors.red
unSelectedColor Color Colors.white
onBannerItemClick OnBannerItemClick(int position, BannerItem bannerItem) null
build CustomBuild(int position, BannerItem item) null
descriptionBackgroundColor Color const Color(0x33000000)
textInfoDirect InfoDirect InfoDirect.HORIZONTAL
circleRadius double 5.0
indicatorStyle IndicatorStyle IndicatorStyle.ELLIPTICAL
ellipticalWidth double 16.0
ellipticalHeight double 8.0
cornerRadius double 10.0

GitHub #

1
likes
30
pub points
10%
popularity

Publisher

unverified uploader

banner_widget is a new Flutter widget,which support you customization whatever you want.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter, transparent_image

More

Packages that depend on banner_widget