Can't reset FormBuilder() - flutter

i have a FormBuilder() which contains :
FormBuilderChoiceChip()
2 FormBuilderTextField()
and a Confirm and reset buttons
When i press the reset button, it resets only FormBuilderChoiceChip(), and when i removed it it works (resets the 2 FormBuilderTextFields).
I tried replacing FormBuilderChoiceChip() by a FormBuilderDropDown(), same thing.
reset function :
void _reset() {
_formKey.currentState.reset();
}
flutter doctor :
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.44.2)
[✓] Connected device (1 available)

Related

cannot distinguish between 'denied' and 'deniedforever' in Location package

I want to handle the status 'deniedforever', but it seems that the app cannot distinguish between 'denied' and 'deniedforever' because when I check 'denied' it give me true even if the actual status is 'deniedforever'!!
is this a bug in location package? or how can I handle this situation?
var permissionGranted = await location.hasPermission();
if (permissionGranted == locate.PermissionStatus.granted) {
handlePermissionGranted();
} else if (permissionGranted == locate.PermissionStatus.denied) {
handlePermissionDenied();
} else if (permissionGranted == locate.PermissionStatus.deniedForever) {
handlePermissionDeniedForever();
}
location package version: ^4.4.0
run flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 3.1.0-9.0.pre, on Microsoft Windows [Version 10.0.19043.1826], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.1)
[√] Android Studio (version 2021.1)
[√] Android Studio (version 4.1)
[√] Android Studio (version 4.2)
[√] VS Code (version 1.68.1)
[√] Connected device (4 available)
[√] HTTP Host Availability
• No issues found!

Dropdown Focus not changing

I am using flutter for web. When I click on the dropdown but do not select any options, then when I click outside the dropdown menu, the focus is still there. But I have used Gesture Detector to change the focus by this-
onTap: () {
FocusManager.instance.primaryFocus?.unfocus();
},
So whenever I click outside the dropdown, the focus needs to be changed. But it is not functioning.
Flutter doctor output:
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1)
[✓] VS Code (version 1.67.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!

why can't the emulator not be detected?

this is my vs code can't find my emulator
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19042.1415],)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1)
[√] VS Code (version 1.63.2)
[√] Connected device (3 available)
• No issues found!

Failed to launch DevTools: TimeoutException after 0:00:10.000000: Future not completed

The flutter tools aren't launching when I press the button on Android Studio, and I also get a warning when I use flutter run.
I've tried flutter clean, but this still happens on both the terminal and Android Studio flutter plugin.
flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)
• No issues found!
Does anyone have suggestions on how to fix this?
Rebooting my computer fixed it.

Initial screen is badly displayed on startup

With this 1.2.1 version I get a strange first screen on my iPhone
(cf. attached image).
Any idea ?
[✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14.2 18C54, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.31.0)
[✓] Connected device (1 available)
I had the same issue (only on iOS) on production app... After hours of trying to find the solution, experimenting with Widgets combinations, devices etc. appeared, that the problem is the Flutter version.
In fact, I have no idea why is that happening and where the problem is, but downgrading Flutter (Channel beta) to version 1.1.8 solved the problem.
My current Flutter version:
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.13.6 17G4015, locale pl-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
[✓] VS Code (version 1.30.2)
[✓] Connected device (1 available)