Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Widget is always showing #1303

Closed
3 of 7 tasks
lovishnovelty opened this issue Oct 8, 2023 · 3 comments
Closed
3 of 7 tasks

Error Widget is always showing #1303

lovishnovelty opened this issue Oct 8, 2023 · 3 comments
Labels
awaiting author response Waiting for author of issue to respond with more info bug Something isn't working Stale

Comments

@lovishnovelty
Copy link

lovishnovelty commented Oct 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

[✓] Flutter (Channel stable, 3.13.1, on macOS 13.5.2 22G91 darwin-arm64, locale en-NP)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.83.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached
with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!

Minimal code example

   FormBuilderTextField(
          name: 'login',
          initialValue: widget.initialValue,
          inputFormatters: widget.inputFormat,
          style: const TextStyle(
            fontSize: Dimens.text_size_default,
            textBaseline: TextBaseline.alphabetic,
          ),
          onSaved: widget.onSaved,
          textAlign: widget.textAlign ?? TextAlign.start,
          textCapitalization: widget.textCapitalization,
          autofocus: widget.autoFocus,
          obscureText: widget.obscureText,
          autovalidateMode: widget.autovalidateMode,
          validator: FormBuilderValidators.compose(validators!.isNotEmpty
              ? [
                  ...validators!,
                ]
              : []),
          onChanged: widget.onChanged,
          onTap: widget.onTap,
          readOnly: widget.readOnly,
          enabled: widget.enabled,
          controller: widget.controller,
          focusNode: widget.focusNode,
          onEditingComplete: () {
            FocusScope.of(context).requestFocus(widget.nextNode);
          },
          maxLines: widget.maxLines,
          maxLength: widget.maxLength,
          textInputAction: widget.textInputAction,
          keyboardType: widget.textInputType,
          decoration: InputDecoration(
            hintStyle: Theme.of(context).textTheme.bodySmall,
            counterText: '',
            contentPadding: const EdgeInsets.all(Dimens.spacing_large),
            prefixIcon: widget.prefixIcon == null
                ? null
                : IconButton(
                    icon: Icon(widget.prefixIcon),
                    onPressed: widget.onPrefixPressed,
                  ),
            suffixIcon: widget.suffixIcon == null
                ? null
                : IconButton(
                    icon: Icon(widget.suffixIcon),
                    onPressed: widget.onSuffixPressed,
                  ),
            hintText: widget.hintText,
            border: _generateBorder(widget.borderColor ?? AppColors.gray_light),
            focusedBorder: _generateBorder(AppColors.gray_dark),
            enabledBorder:
                _generateBorder(widget.borderColor ?? AppColors.gray_light),
            errorBorder: _generateBorder(AppColors.error),
            focusedErrorBorder: _generateBorder(AppColors.error),
            error: Row(
              children: [Text('icon'), Text('text')],
            ),
            
          ),
        ),

Current Behavior

Even there is no error..the error widget is always shown.

Expected Behavior

Show error widget only if there is error.

Steps To Reproduce

  1. Open App
  2. Try to login
  3. Donot type aything
  4. Error widget is already there

Aditional information

when you delete the text and if text field is empty getting this error.

Screenshot 2023-10-08 at 10 57 10
@lovishnovelty lovishnovelty added the bug Something isn't working label Oct 8, 2023
@deandreamatias
Copy link
Collaborator

Without a minimal example code, I can't reproduce the error. Please, try modify the example code to reproduce your error. Thanks

@deandreamatias deandreamatias added the awaiting author response Waiting for author of issue to respond with more info label Oct 9, 2023
Copy link

github-actions bot commented Nov 9, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 9, 2023
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting author response Waiting for author of issue to respond with more info bug Something isn't working Stale
2 participants