persian_horizontal_date_picker 0.1.2 copy "persian_horizontal_date_picker: ^0.1.2" to clipboard
persian_horizontal_date_picker: ^0.1.2 copied to clipboard

retracted

A customizable horizontal date picker library for Flutter. Support both jalali and gregorian dates.

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.2

2.Install packages from the command line

flutter pub get

3.Import the package:

import 'package:persian_horizontal_date_picker/persian_horizontal_date_picker.dart';

Usage #

Use the PersianHorizontalDatePicker widget

PersianHorizontalDatePicker(
    startDate: DateTime.now(),
    endDate: DateTime.now().add(const Duration(days: 30)),
    initialSelectedDate: DateTime.now(),
    onDateSelected: (date) {},
  )

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
itemPadding double? 8
itemWidth double? 84
itemRadius double? 56
selectedItemWidth double? 84
selectedItemRadius double? 56
itemBackgroundColor Color? Color(0xFFBBDEFB)
selectedItemBackgroundColor Color? Colors.blue
itemWeekDayTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 12, color: Colors.blue)
selectedItemWeekDayTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 12, color: Colors.white)
itemDayTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 16, color: Colors.blue, fontWeight: FontWeight.bold)
selectedItemDayTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 16, color: Colors.white, fontWeight: FontWeight.bold)
itemMonthTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 12, color: Colors.blue)
selectedItemMonthTextStyle TextStyle? TextStyle(fontFamily: "Shabnam", fontSize: 12, color: Colors.white)
hasSelectedItemShadow bool? true
markedDotColor Color? Colors.blue
selectedMarkedDotColor Color? Colors.white

Donation #

13
likes
0
pub points
59%
popularity

Publisher

unverified uploader

A customizable horizontal date picker library for Flutter. Support both jalali and gregorian dates.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, scroll_to_index, shamsi_date

More

Packages that depend on persian_horizontal_date_picker