Skip to content

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

@naumanarif21

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 }} ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: stackoverflowGood question for Stack Overflowf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions