Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cikichen/flutter_cupertino_data_picker
flutter_cupertino_data_picker
https://github.com/cikichen/flutter_cupertino_data_picker
flutter picker
Last synced: about 2 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T06:16:14.000Z (almost 4 years ago)
- Last Synced: 2023-08-20T21:57:52.911Z (over 1 year 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
[![pub package](https://img.shields.io/badge/pub-0.8.6-brightgreen.svg)](https://pub.dartlang.org/packages/flutter_cupertino_data_picker)
![flutter_cupertino_data_picker](https://socialify.git.ci/cikichen/flutter_cupertino_data_picker/image?description=1&descriptionEditable=flutter%E6%95%B0%E6%8D%AE%E9%80%89%E6%8B%A9%E5%99%A8&font=Inter&forks=1&language=1&owner=1&pulls=1&stargazers=1&theme=Light)
## Getting Started
![Screenshot](screenshots/demo.png)
## 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