0
votes

After incrementing integer value on modal bottom sheet in flutter,it is updating only after closing and again opening ModalBottom sheet. as I am trying to compare qty with it so that we can compare if qty is there or not.

  • StatefulBuilder( builder: (BuildContext context, StateSetter setState) => new GestureDetector( onTap: () { setState(() { value++; }); }, child: new Text( "+", style: TextStyle( color: Colors .red), ), ))

I want to increment cart value which is 1 and by tapping on '+'which is an icon, I want to incremant that 1 value on every tap on bottom sheet but what i am getting is,after tapping on '+' Incrementation of value is showing only after closing of bottom sheet and then reopen it after clicking on a product.

1
please add more info then we can help youTushar Nikam
Please add your code in the question so that we will be able to help you.Ravi Singh Lodhi
Editted it.Kindly responseshivendra

1 Answers

0
votes