persian_horizontal_date_picker

Last updated:

0 purchases

persian_horizontal_date_picker Image
persian_horizontal_date_picker Images
Add to Cart

Description:

persian horizontal date picker

Persian Horizontal Date Picker #
A customizable horizontal date picker library for Flutter. Support both jalali and gregorian dates.

Getting started #
1.Add it to your package's pubspec.yaml file
dependencies:
persian_horizontal_date_picker: ^0.1.7
copied to clipboard
2.Install packages from the command line
flutter pub get
copied to clipboard
3.Import the package:
import 'package:persian_horizontal_date_picker/persian_horizontal_date_picker.dart';
copied to clipboard
Usage #
Use the PersianHorizontalDatePicker widget
PersianHorizontalDatePicker(
startDate: DateTime.now(),
endDate: DateTime.now().add(const Duration(days: 30)),
initialSelectedDate: DateTime.now(),
onDateSelected: (date) {},
)
copied to clipboard
Parameters #



Parameter
Type
Default




startDate
DateTime



endDate
DateTime



initialSelectedDate
DateTime?
null


markedDates
List<DateTime>?
null


onDateSelected
Function(DateTime? date)



isPersianDate
bool?
true


datePickerHieght
double?
112


margin
double?
8


contentPadding
EdgeInsets?
EdgeInsets.all(8)


width
double?
84


radius
double?
56


backgroundColor
Color?
Color(0xFFBBDEFB)


selectedBackgroundColor
Color?
Colors.blue


textColor
Color?
Colors.blue


selectedTextColor
Color?
Colors.white


weekDayTextStyle
TextStyle?
TextStyle(fontSize: 12, color: Colors.blue)


selectedWeekDayTextStyle
TextStyle?
TextStyle(fontSize: 12, color: Colors.white)


dayTextStyle
TextStyle?
TextStyle(fontSize: 16, color: Colors.blue, fontWeight: FontWeight.bold)


selectedDayTextStyle
TextStyle?
TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.bold)


monthTextStyle
TextStyle?
TextStyle(fontSize: 12, color: Colors.blue)


selectedMonthTextStyle
TextStyle?
TextStyle(fontSize: 12, color: Colors.white)


hasSelectedItemShadow
bool?
true


markedDotColor
Color?
Colors.blue


selectedMarkedDotColor
Color?
Colors.white



Donation #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.