columnFlex property

List<int>? columnFlex
final

Custom flex values for each picker column.

Controls the relative width of each column. For example:

  • [1, 1, 1]: All columns have equal width
  • [2, 1, 1]: First column is twice as wide as others
  • [3, 2, 1]: First column takes 3/6, second takes 2/6, third takes 1/6

If null or shorter than the number of columns, remaining columns use flex value of 1.

Implementation

final List<int>? columnFlex;