Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Flutter_app | 2,417 | 9 days ago | 9 | apache-2.0 | Dart | |||||
🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块 | ||||||||||
Datepickertimelineflutter | 127 | 2 | 2 years ago | 9 | March 06, 2021 | 16 | apache-2.0 | Dart | ||
Flutter Date Picker Library that provides a calendar as a horizontal timeline | ||||||||||
Datepickertimeline | 71 | 3 years ago | 1 | May 08, 2019 | 6 | apache-2.0 | Java | |||
Android Date Picker Library that provides a calendar as a horizontal timeline | ||||||||||
Flutter_date_picker_timeline | 25 | a year ago | 2 | mit | Dart | |||||
Gregorian and Jalali customizable date picker as a horizontal timeline | ||||||||||
Angular Teleperiod | 9 | 5 | 3 years ago | December 10, 2017 | ||||||
period picker on a time line with working hours embeded in an angular directive | ||||||||||
Podpicker | 5 | 8 years ago | mit | JavaScript | ||||||
A Podcast Timeline (chapter marks) Generator | ||||||||||
Teleperiod | 4 | 3 years ago | 2 | JavaScript | ||||||
period picker on a time line with working hours | ||||||||||
Timeplunk | 1 | 8 years ago | mit | JavaScript | ||||||
tiny timeline picker for d3 |
💥 Gregorian and Jalali customizable date picker as a horizontal timeline 💥
dependencies:
flutter_date_picker_timeline: ^0.3.3
flutter pub get
import 'package:flutter_date_picker_timeline/flutter_date_picker_timeline.dart';
FlutterDatePickerTimeline
WidgetFlutterDatePickerTimeline(
startDate: DateTime(2020, 07, 01),
endDate: DateTime(2020, 12, 30),
initialSelectedDate: DateTime(2020, 07, 24),
onSelectedDateChange: (DateTime dateTime) {
print(dateTime);
},
)
FlutterDatePickerTimeline({
Key key,
// Determines the [FlutterDatePickerTimeline] mode.
this.calendarMode = CalendarMode.gregorian,
// The first date of [FlutterDatePickerTimeline].
@required this.startDate,
// The last date of [FlutterDatePickerTimeline].
@required this.endDate,
// Initially selected date.
this.initialSelectedDate,
// Initially focused date(If nothing is provided, a [initialSelectedDate] will be used).
this.initialFocusedDate,
// Used for setting the textDirection of [FlutterDatePickerTimeline].
this.textDirection,
// Used for setting the width of selected items.
this.selectedItemWidth = 170,
// Used for setting the width of unselected items.
this.unselectedItemWidth = 38,
// Used for setting the height of selected and unselected items.
this.itemHeight = 38,
// Used for setting the radius of selected and unselected items background.
this.itemRadius = 10,
// Used for setting the padding of [ListView].
this.listViewPadding = const EdgeInsets.only(right: 5.5, left: 5.5),
// Used for setting the margin of selected items.
this.selectedItemMargin = const EdgeInsets.only(right: 5.5, left: 5.5),
// Used for setting the margin of unselected items.
this.unselectedItemMargin = const EdgeInsets.only(right: 5.5, left: 5.5),
// Used for setting the color of selected items background.
this.selectedItemBackgroundColor = const Color(0xFF2B2C30),
// Used for setting the color of unselected items background.
this.unselectedItemBackgroundColor = Colors.white,
// Used for setting the style of selected items [Text].
this.selectedItemTextStyle,
// Used for setting the style of unselected items [Text].
this.unselectedItemTextStyle,
// Called whenever any date gets selected.
@required this.onSelectedDateChange,
}) : super(key: key);
props | types | defaultValues |
---|---|---|
calendarMode | CalendarMode |
CalendarMode.gregorian |
startDate | DateTime |
|
endDate | DateTime |
|
initialSelectedDate | DateTime? |
|
initialFocusedDate | DateTime? |
If nothing is provided, a [initialSelectedDate] will be used |
textDirection | TextDirection? |
If nothing is provided, a [calendarMode] will be used. (CalendarMode.gregorian -> TextDirection.ltr , CalendarMode.jalali -> TextDirection.rtl) |
selectedItemWidth | double |
170 |
unselectedItemWidth | double |
38 |
itemHeight | double |
38 |
itemRadius | double |
10 |
listViewPadding | EdgeInsets |
const EdgeInsets.only(right: 5.5, left: 5.5) |
selectedItemMargin | EdgeInsets |
const EdgeInsets.only(right: 5.5, left: 5.5) |
unselectedItemMargin | EdgeInsets |
const EdgeInsets.only(right: 5.5, left: 5.5) |
selectedItemBackgroundColor | Color |
const Color(0xFF2B2C30) |
unselectedItemBackgroundColor | Color |
Colors.white |
selectedItemTextStyle | TextStyle? |
TextStyle(fontFamily: widget.calendarMode == CalendarMode.gregorian ? 'nunito' : 'dana', package: 'flutter_date_picker_timeline', color: widget.unselectedItemBackgroundColor) |
unselectedItemTextStyle | TextStyle? |
TextStyle(fontFamily: widget.calendarMode == CalendarMode.gregorian ? 'nunito' : 'dana', package: 'flutter_date_picker_timeline', color: widget.selectedItemBackgroundColor) |
onSelectedDateChange | DateChangeListener |