You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[√] Flutter (Channel stable, 3.19.1, on Microsoft Windows [Version 10.0.22631.3155], locale en-US)
• Flutter version 3.19.1 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision abb292a07e (10 days ago), 2024-02-20 14:35:05 -0800
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\home\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
• All Android licenses accepted.
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.4.2)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.4.33122.133
• Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2023.1)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
[√] VS Code (version 1.87.0)
• VS Code at C:\Users\home\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.82.0
[√] Connected device (3 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3155]
• Edge (web) • edge • web-javascript • Microsoft Edge 122.0.2365.59
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Interaction with dropdown triggers a rebuild, which resets the page and in this case shows a loading screen again and also resets the fields. The first time I select the dropdown it rebuilds without showing anything, the second time it works and shows the elements in the dropdown however after choosing an element it rebuilds again and resets the form
Dropdown.rebuild.mp4
Expected Behavior
No rebuilds and for the selected element in the dropdown to be selected correctly.
Steps To Reproduce
Select dropdown and it will rebuild.
Aditional information
Other pages with the same dropdown do not have this issue, I tried deleting any unnecessary code or packages just to find the cause and so far I cannot, even though I have another page with similar code that works. I don't know what I'm missing here.
The code that deals with the API has no issues I checked and it should not trigger a rebuild. I can add more information if necessary, thank you.
The text was updated successfully, but these errors were encountered:
Aarkann
changed the title
FormBuilderDropdown when selected keeps triggering a rebuilding
FormBuilderDropdown when selected keeps triggering a rebuild
Mar 1, 2024
Is there an existing issue for this?
Package/Plugin version
9.2.1
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
Interaction with dropdown triggers a rebuild, which resets the page and in this case shows a loading screen again and also resets the fields. The first time I select the dropdown it rebuilds without showing anything, the second time it works and shows the elements in the dropdown however after choosing an element it rebuilds again and resets the form
Dropdown.rebuild.mp4
Expected Behavior
No rebuilds and for the selected element in the dropdown to be selected correctly.
Steps To Reproduce
Select dropdown and it will rebuild.
Aditional information
Other pages with the same dropdown do not have this issue, I tried deleting any unnecessary code or packages just to find the cause and so far I cannot, even though I have another page with similar code that works. I don't know what I'm missing here.
The code that deals with the API has no issues I checked and it should not trigger a rebuild. I can add more information if necessary, thank you.
The text was updated successfully, but these errors were encountered: