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

FormBuilderDropdown can't set itemHeight to null #1015

Closed
joselicht90 opened this issue May 3, 2022 · 1 comment
Closed

FormBuilderDropdown can't set itemHeight to null #1015

joselicht90 opened this issue May 3, 2022 · 1 comment
Assignees

Comments

@joselicht90
Copy link

/// If null, then the menu item heights will vary according to each menu item's
/// intrinsic height.
///
/// The default value is [kMinInteractiveDimension], which is also the minimum
/// height for menu items.
///
/// If this value is null and there isn't enough vertical room for the menu,
/// then the menu's initial scroll offset may not align the selected item with
/// the dropdown button. That's because, in this case, the initial scroll
/// offset is computed as if all of the menu item heights were
/// [kMinInteractiveDimension].
final double itemHeight;

Given the description I should be able to set itemHeight to null, but the type is a non nullable double

@danvick danvick self-assigned this May 19, 2022
@danvick
Copy link
Collaborator

danvick commented May 19, 2022

I think the API for this attribute has changed in the latest versions of Flutter. We'll fix this ASAP

Note, however, that in this library we have already set the default value of the attribute to kMinInteractiveDimension. So feel free to ignore the attribute and the default value will still be kMinInteractiveDimension

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

No branches or pull requests

2 participants