custom_cupertino_picker 2.0.3 custom_cupertino_picker: ^2.0.3 copied to clipboard
The default cupertino picker does not allow customization to the border color and scroll physics. So I've copied the class and added some properties to it.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add custom_cupertino_picker
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
custom_cupertino_picker: ^2.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:custom_cupertino_picker/custom_cupertino_picker.dart';