fluttercupertinopicker

Set width and height for Cupertino Picker


Cupertino Picker in flutter takes 100% width.

How do we give it custom styling? Height, Width, Borders?

I tried putting it inside a container with width and all, didn't work.Instead there was a weird soft edged background when I gave container a color.


Solution

  • Answering my own question for the time being,

    I got a workaround by making the following tree:

    I tried multiple workarounds but none worked

    A better approach is highly appreciated!