form_builder_extra_fields
form_builder_extra_fields copied to clipboard
[FormBuilderSearchableDropdown]: Scrolling to initial item when opened
Is there an existing issue for this?
- [X] I have searched the existing issues
Package/Plugin version
^10.1.0
Platforms
- [X] Android
- [X] iOS
- [ ] Linux
- [ ] MacOS
- [ ] Web
- [ ] Windows
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 3.14.0-0.2.pre, on Microsoft Windows [Version 10.0.22621.2428], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.1) [√] Android Studio (version 2022.3) [√] VS Code (version 1.84.0) [√] Connected device (4 available)
Hello, I want the FormBuilderSearchableDropdown to scroll to initial item when opened. This widget opens every time from the start.
Minimal code example
FormBuilderSearchableDropdown<int>(
key: UniqueKey(),
name: 'FormBuilderSearchableDropdown_A',
items: List.generate(100, (index) => index),
selectedItem: 50,
initialValue: 50,
popupProps: const PopupProps.menu(
showSelectedItems: true,
showSearchBox: false,
fit: FlexFit.loose,
),
compareFn: (a, b) => a == b,
),
Current Behavior
This widget opens every time from the start.
Expected Behavior
I want the FormBuilderSearchableDropdown to scroll to initial item when opened.
Steps To Reproduce
Just use this widget
Additional information
I don't know if this is a bug or a new feature. This can be do with original widget? https://pub.dev/packages/dropdown_search