custom_cupertino_picker 1.0.1
custom_cupertino_picker: ^1.0.1 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.

custom_cupertino_picker #

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.

Added the following properties:

  1. highlighterBorderColor

    • Border color for the magnifier.
  2. highlighterBorder

    • Border for the magnifier. If this one is set the highlighterBorderColor will be ignored.
  3. highlighterBorderWidth

    • Border width for the magnifier if you don't fill the border to the full width
  4. scrollPhysics

    • ScrollPhysics for the ScrollView if you want to override the default physics.

Getting Started #

import the package

import 'package:custom_cupertino_picker/custom_cupertino_picker.dart';

and use it for example like below

CustomCupertinoPicker(
    highlighterBorder: Border(
        top: BorderSide(
            width: 1.0, color: Colors.orange,
        ),
        bottom: BorderSide(
            width: 1.0, color: Colors.orange,
        ),
    ),
    highlighterBorderWidth: 60,
    scrollPhysics: const FixedExtentScrollPhysics(
        parent: BouncingScrollPhysics(),
    ),
    children: ...
)

preview

0
likes
80
pub points
56%
popularity

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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sybrandsplace@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_cupertino_picker