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
Just check for null and give a default
Text(cart_prod_qty!=null?cart_prod_qty:'default value'),
You can keep it empty if you wish
Text(cart_prod_qty!=null?cart_prod_qty:''),
Or else you can make text widget optional
cart_prod_qty!=null? Text(cart_prod_qty): Container()