flutter_cupertino_data_picker 0.8.1 copy "flutter_cupertino_data_picker: ^0.8.1" to clipboard
flutter_cupertino_data_picker: ^0.8.1 copied to clipboard

outdated

flutter cupertino data_picker(自定义数据选择器).

pub package

flutter_cupertino_data_picker #

flutter cupertino data_picker.

Getting Started #

Screenshot

Usage #

void _showDataPicker() {
       final bool showTitleActions = true;
       DataPicker.showDatePicker(
         context,
         showTitleActions: showTitleActions,
         locale: 'zh',
         datas: ['男', '女'],
         title: '选择性别',
         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.1
  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

4
likes
0
pub points
38%
popularity

Publisher

unverified uploader

flutter cupertino data_picker(自定义数据选择器).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_cupertino_data_picker