https://github.com/mohamedashraf701/datetimelist
https://github.com/mohamedashraf701/datetimelist
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohamedashraf701/datetimelist
- Owner: MohamedAshraf701
- License: other
- Created: 2022-09-01T05:29:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T05:42:30.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T10:05:28.936Z (3 months ago)
- Language: Dart
- Size: 7.81 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Platform Support | Android | iOS | | :-----: | :-: | | ✔️ | ✔️
## Features
Flutter Date Picker Library that provides a calendar as a horizontal timeline.
## Imports
```dart
import 'package:datetimelist/date_picker_timeline.dart';
```## Usage
```dart
DatePicker(
DateTime.now(),
initialSelectedDate: DateTime.now(),
selectionColor: Colors.black,
selectedTextColor: Colors.white,
onDateChange: (date) {
// New date selected
setState(() {
_selectedValue = date;
});
},
),
```## Constructor
```dart
DatePicker(
this.startDate, {
Key key,
this.width,
this.height,
this.controller,
this.monthTextStyle,
this.dayTextStyle,
this.dateTextStyle,
this.selectedTextColor,
this.selectionColor,
this.deactivatedColor,
this.initialSelectedDate,
this.activeDates,
this.inactiveDates,
this.daysCount,
this.onDateChange,
this.locale = "en_US",
}) : super(key: key);```