Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify : replace show** to pickerOrder #2

Closed

Conversation

guchengxi1994
Copy link
Contributor

pickerOrder is a map like {"month": 4, "day": 5, "year": 3}, keys are picker type and values are Expanded flex

pickerOrder is a map like {"month": 4, "day": 5, "year": 3}, keys are picker type and values are Expanded flex
this.showDay = true,
this.showMonth = true,
this.showYear = true})
this.pickerOrder = const {"month": 4, "day": 5, "year": 3}})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the 4, 5, 3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is the width of every Expanded element in a Row, such as

 Row(
     children:[
           Expanded(flex:4,child:...),
           Expanded(flex:5,child:...),
           Expanded(flex:3,child:...),
      ]
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also , if this value is 0, the correspond widget will not be displayed.

@Robertrobinson777
Copy link
Owner

For more convenient added the params as follow
dayFlex: 1,
monthFlex: 1,
yearFlex: 1,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants