A non-null String must be provided to a Text widget

前端 未结 9 1678
醉酒成梦
醉酒成梦 2021-02-13 20:15

I\'m trying to add the option for the quantity to be adjusted but I get an error saying \"A non-null String must be provided to a Text widget\" How do I provide this, to this co

9条回答
  •  清歌不尽
    2021-02-13 20:54

    I GOT SAME ERROR DUE TO THIS

    BEFORE:

    title:  Text(widget.title)
    

    AFTER:

    title:  Text('ram')
    
    

    THIS SOLVED MY ERROR

    To solve this error Add Double quote or single quote title: Text('ram')

提交回复
热议问题