Skip to content

A new banner package which has many api reference,and allowed custom build.

License

Notifications You must be signed in to change notification settings

manburenshenglu/banner_widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A new banner package which has many api reference,and allowed custom build.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published