horizontal_calendar_plus 0.0.2
horizontal_calendar_plus: ^0.0.2 copied to clipboard
Horizontal calendar plus
Flutter Horizantal calender plaus package . You easy to handel Horizantal calender . Always highlight current index you can change and modify it
Features #
- Multiple country languages [HINDI, BANGLA, NAPILE, ENGLISH]
- DEFAUL show english
- Use coustom design widget build Horizantal Calender
- Access & Manage all function
- Always highlight current index you can change and modify it
Getting started #
- ✅ Add this package your yaml file
dependencies:
horizontal_calendar_plus: 0.0.2
Usage #
@override
void initState() {
super.initState();
// Start date time updater
HorizontalCalendarPlus.startDateTimeUpdater(_currentDateNotifier);
//Always highlight current index
HorizontalCalendarPlus.jumpToCurrentIndex(scrollController);
}
HorizontalCalendarPlus(
currentDateNotifier: _currentDateNotifier,
padding: EdgeInsets.only(top: 15,left: 8,right: 8),
scrollController: scrollController,
calenderLabelformate: CalenderDateFormate.ABBR_WEEKDAY,
calenderSubTitleformate: CalenderDateFormate.MONTH_DAY,
designTypeCalender: DesignTypeCalender.DEFAULTDESIGN,
boxelevation: 5,
boxActiveBgColor: Colors.green,
boxborderRadius: BorderRadius.circular(1),
changelanguage: Changelanguage.NAPILE,
cardViewDesign: CardContentView(
hideIcon: false,
),
),
Build Custom Widget #
designTypeCalender: DesignTypeCalender.CUSTOMDESIGN
customWidgetbuilder: (context, dateTime, index) {
final packageCore = PackageCore(builderIndex: index, dateTime: dateTime, countPreviesDate: 3);
return Card(
color: packageCore.dateFormatePlus() == packageCore.checkCurrentDate() ? Colors.green : Colors.black,
elevation: 2,
shape: RoundedRectangleBorder(
side: packageCore.dateFormatePlus() == packageCore.checkCurrentDate() ? BorderSide(width: 2,color: Colors.green) : BorderSide(width: 1,color: Colors.black),
borderRadius: BorderRadius.circular(10),
),
shadowColor: Colors.black,
borderOnForeground: true,
margin: EdgeInsets.all(2),
clipBehavior: Clip.antiAliasWithSaveLayer,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text( // Label
packageCore.showTitle(CalenderDateFormate.MONTH_DAY.skeleton),
style: TextStyle(fontSize: 14, fontWeight: FontWeight.normal),
),
Text( // SubTitle text
packageCore.showSubTitle(CalenderDateFormate.WEEKDAY.skeleton),
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
],
),
);
},
Change Calender Date Formate & Card Content #
// add [skeleton] return String
CalenderDateFormate.WEEKDAY.skeleton,
CalenderDateFormate.MONTH_DAY.skeleton,
// Card Content update card ui design
CardContent
Package UI view #
Next Goals #
- ✅ Add more country Multiple country languages [HINDI, BANGLA, NAPILE, ENGLISH]
- ✅ Issue solved & improve
- ✅ Add more design template