Skip to content

Allow null String for Text widget #40459

Closed
@ScottPierce

Description

@ScottPierce

Text shouldn't throw an error if I give it a null String. It should handle that gracefully and display the same as if I gave it an empty String. Otherwise, you create more work for me, processing null Strings to empty Strings, and from what I've found so far, Dart is bad at things like that compared to Kotlin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalA detailed proposal for a change to Flutterframeworkflutter/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