Skip to content

How can I conveniently bind Response.errors to errorText label in the TextFormField widget(Input Decoration) #40254

Closed

Description

@naumanarif21

I am posting to an API and then attaching the error response body to a variable.
is there a way to bind that variable to errorText of TextFormField.

Somewhat like angular, where we use typesafe operator like the following {{ error?.name }} ?

Activity

  1. naumanarif21 commented on Sep 11, 2019

    @naumanarif21
    Author

    My Error Variable
    Screenshot from 2019-09-11 19-23-29

    My errorText label

    Screenshot from 2019-09-11 19-23-10

    My Response Parser Function
    Screenshot from 2019-09-11 19-25-59

  2. BondarenkoStas commented on Sep 11, 2019

    @BondarenkoStas

    This is a question better suited for StackOverflow, since there doesn’t seem to be anything wrong with Flutter itself. Closing, as this is not an issue report. See https://flutter.dev/community for support options.
    If you disagree, feel free to comment and I will reopen the issue.

  3. naumanarif21 commented on Sep 11, 2019

    @naumanarif21
    Author
  4. BondarenkoStas commented on Sep 11, 2019

    @BondarenkoStas

    @naumanarif21 Sorry, I don't know how to do that, and just doing first triage of issues. Hope some help will come!

  5. added
    d: stackoverflowGood question for Stack Overflow
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Sep 11, 2019
  6. darshankawar commented on Jul 9, 2020

    @darshankawar
    Member

    Hi @naumanarif21,
    This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
    you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
    Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
    Thank you

  7. github-actions commented on Aug 12, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: stackoverflowGood question for Stack Overflowframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions