Flutter doctor
```bash
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [versão 10.0.22631.3593], locale pt-BR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Ferramentas de Build do Visual Studio 2022 17.8.0)
[√] Android Studio (version 2023.1)
[√] Connected device (3 available)
[√] Network resources
• No issues found!
```
Is there an existing issue for this?
Package/Plugin version
9.2.1
Platforms
Flutter doctor
Flutter doctor
```bash Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [versão 10.0.22631.3593], locale pt-BR) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Ferramentas de Build do Visual Studio 2022 17.8.0) [√] Android Studio (version 2023.1) [√] Connected device (3 available) [√] Network resources • No issues found! ```Minimal code example
Code sample
```dart import 'package:flutter/material.dart'; import 'package:flutter_form_builder/flutter_form_builder.dart'; import 'package:form_builder_validators/form_builder_validators.dart'; void main() => runApp(const MaterialApp( home: Scaffold( body: Padding( padding: EdgeInsets.all(8.0), child: DynamicFields(), ), ), )); class DynamicFields extends StatefulWidget { const DynamicFields({Key? key}) : super(key: key); @override StateCurrent Behavior
Each added text field has an icon 1 which indicates that, on click, the respective added text field will be deleted.![image](https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/60040236/5ce0df9e-e6ac-49b9-b53c-7d78a2a0e6e3)
But, only the last one is deleted 2.
Expected Behavior
Clicking on a delete icon 1 should remove only the corresponding form text field, even if it was not the last one added.
Steps To Reproduce
Run the script provided
Fill the title field
Add a field and fill it with the value Content0
Add a field and fill it with the value Content1
Add a field and fill it with the value Content2
Press the button Submit The result is:![image](https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/60040236/d94e7697-de29-4fef-85a7-2c202fea7249)
Click on the delete button related to "Content1" field:![image](https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/60040236/ab701a56-5d2e-459f-a5e2-60f0a1335a5f)
Press the button Submit and notice that the field with Content2 was deleted, not the one with Content1![image](https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/60040236/7a114755-e601-47f8-a783-0427b98bb1bd)
Aditional information
No response