Form filed showing after validation error after resetting form flutter

This is form field code

class CaratMinMaxFields extends FormField<Range> {
  final String? title;

  /// The minimum allowed value for the range. Defaults to 0.
  final double minValue;

  /// The maximum allowed value for the range. Defaults to 100.
  final double maxValue;

  /// A callback function called when the range values change.
  /// This callback getting triggered does not mean the text field have validated value.
  final ValueChanged<Range?>? onChanged;

  final TextEditingController minController;
  final TextEditingController maxController;
  final AutovalidateMode? validateMode;
  final Range? range;
  static bool _fakeValidator = true;

  CaratMinMaxFields({
    this.title,
    this.minValue = 0,
    this.maxValue = 100,
    this.onChanged,
    this.validateMode = AutovalidateMode.disabled,
    this.range,
    required this.minController,
    required this.maxController,
    super.key,
  }) : super(
          autovalidateMode: validateMode,
          initialValue: range,
          validator: (Range? range) {
             if (_fakeValidator) return null;

            if (range == null || (range.from == null && range.to == null)) {
              return AppRouter.navigatorKey.currentContext?.localizations
                  .enterValueRangeErrorWithString('0.15', '50.00');
            }
            if (range.from == null) {
              return AppRouter.navigatorKey.currentContext?.localizations
                  .fromFieldCannotBeEmpty;
            }

            if (range.to == null) {
              return AppRouter.navigatorKey.currentContext?.localizations
                  .toFieldCannotBeEmpty;
            }

            final isFromGreaterThanTo =
                (range.from ?? double.maxFinite) > (range.to ?? 0);
            final isFromSmallerThanMinValue =
                (range.from ?? double.maxFinite) < minValue;
            final isToGreaterThanMaxValue =
                (range.to ?? double.maxFinite) > maxValue;
            if (isFromGreaterThanTo) {
              return AppRouter.navigatorKey.currentContext?.localizations
                  .minGreaterThanMaxValueError;
            }
            if (isFromSmallerThanMinValue || isToGreaterThanMaxValue) {
              return AppRouter.navigatorKey.currentContext?.localizations
                  .enterValueRangeErrorWithString(
                      minValue.toStringAsFixed(2),
                     maxValue.toStringAsFixed(2));
            }
            return null;
          },
          builder: (FormFieldState<Range> state) {
            return Builder(
              builder: (context) {
                return Column(
                  crossAxisAlignment: CrossAxisAlignment.stretch,
                  children: [
                    if (title != null) ...{
                      Text(
                        title,
                        style: CoreTextStyle.sRegular,
                      ),
                      16.height,
                    },
                    Row(
                      children: [
                        Expanded(
                          flex: 3,
                          child: CoreLeadingInputField(
                            title: context.localizations.from,
                            controller: minController,
                            onChanged: (value) {
                              _fakeValidator = true;
                              final fromValueInNum =
                                  num.tryParse(value.replaceAll(",", "."));

                              if (fromValueInNum == null) {
                                if (state.value?.to == null) {
                                  state.reset();
                                  state.didChange(const Range());
                                } else {
                                  state.didChange(
                                    (Range(to: state.value?.to)),
                                  );
                                }
                              } else {
                                state.didChange(
                                  (state.value ?? const Range())
                                      .copyWith(from: fromValueInNum),
                                );
                              }
                              state.validate();
                              _fakeValidator = false;
                              onChanged?.call(state.value);
                            },
                            keyboardType: const TextInputType.numberWithOptions(
                              decimal: true,
                            ),
                            textInputFormatter: [
                              FilteringTextInputFormatter.allow(
                                twoDecimalPlaceNumber,
                              ),
                            ],
                            hasError: state.hasError,
                          ),
                        ),
                        const Spacer(),
                        Expanded(
                          flex: 3,
                          child: CoreLeadingInputField(
                            title: context.localizations.to,
                            controller: maxController,
                            onChanged: (value) {
                              debugPrint('onChanged-----$value');
                              _fakeValidator = true;
                              final toValueInNum =
                                  num.tryParse(value.replaceAll(",", "."));

                              if (toValueInNum == null) {
                                if (state.value?.from == null) {
                                  state.reset();
                                  state.didChange(const Range());
                                } else {
                                  state.didChange(
                                    Range(from: state.value?.from),
                                  );
                                }
                              } else {
                                state.didChange(
                                  (state.value ?? const Range()).copyWith(
                                    to: toValueInNum,
                                  ),
                                );
                              }
                              state.validate();
                              _fakeValidator = false;
                              onChanged?.call(state.value);
                            },
                            keyboardType: const TextInputType.numberWithOptions(
                              decimal: true,
                            ),
                            textInputFormatter: [
                              FilteringTextInputFormatter.allow(
                                twoDecimalPlaceNumber,
                              ),
                            ],
                            hasError: state.hasError,
                          ),
                        ),
                      ],
                    ),
                    if (state.hasError) ...{
                      4.height,
                      Text(
                        state.errorText!,
                        style: CoreTextStyle.sRegular.copyWith(
                          color: context.colorScheme.error,
                        ),
                      ),
                    },
                  ],
                );
              },
            );
          },
        );

  @override
  FormFieldState<Range> createState() => CaratMinMaxTextFields();
}

class CaratMinMaxTextFields extends FormFieldState<Range> {
  @override
  void didUpdateWidget(covariant FormField<Range> oldWidget) {
    setValue(widget.initialValue);
    validate();
    super.didUpdateWidget(oldWidget);
  }
}

After click on plus button validation should be disable, But first time when we click on plus button without entring value should show error, once valid value edited and click on plus button should add in list that is working, But on plus button when value is right after addition no message should shown

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật