https://github.com/cikichen/flutter_cupertino_data_picker
flutter_cupertino_data_picker
https://github.com/cikichen/flutter_cupertino_data_picker
flutter picker
Last synced: 3 months ago
JSON representation
flutter_cupertino_data_picker
- Host: GitHub
- URL: https://github.com/cikichen/flutter_cupertino_data_picker
- Owner: cikichen
- License: mit
- Created: 2018-09-14T05:44:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T06:16:14.000Z (over 4 years ago)
- Last Synced: 2023-08-20T21:57:52.911Z (almost 2 years ago)
- Topics: flutter, picker
- Language: Dart
- Size: 86.9 KB
- Stars: 5
- Watchers: 1
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/flutter_cupertino_data_picker)

## Getting Started

## Usage
```
void _showDataPicker() {
final bool showTitleActions = true;
DataPicker.showDatePicker(
context,
showTitleActions: showTitleActions,
locale: 'zh',
datas: ['dog', 'cat'],
title: 'select',
onChanged: (data) {
print('onChanged date: $data');
},
onConfirm: (data) {
print('onConfirm date: $data');
},
);
}
```## Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:```
dependencies:
flutter_cupertino_data_picker: ^0.8.6
```2. Install it
You can install packages from the command line:with Flutter:
```
$ flutter packages get
```Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:```
import 'package:flutter_cupertino_data_picker/flutter_cupertino_data_picker.dart';
```Fork by https://github.com/wuzhendev/flutter-cupertino-date-picker