Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.46 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.46 KB

pub package

flutter_cupertino_data_picker

Getting Started

Screenshot

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

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