consumer widget is not called after data is updated in provider of ChangeNotifier class in release mode, the same code is working fine in debug mode, and first time in release mode but if the screen is called with pushReplacement it's not rebuild the consumer widget, its building other consumer widget of the same page
Asked
Active
Viewed 324 times
1
-
try `flutter clean` and build again. also make sure about `notifyListner` – Md. Yeasin Sheikh Dec 02 '21 at 15:53
-
Please share your code as well to get better answer. – Diwyansh Dec 02 '21 at 17:35
-
@YeasinSheikh I tried flutter clean and also notfiyListener is there , I am using one future builder inside consumer builder – Ashok Jangid Dec 03 '21 at 07:09
-
`FutureBuilder` build just onetime, you may need `StreamBuilder` in your scenario – Md. Yeasin Sheikh Dec 03 '21 at 08:52
-
@YeasinSheikh I have 4 `consumer` in that page and all have `FutureBuilder` in it only one consumer not working fine in release mode other three are working and I am uing same code logic for all – Ashok Jangid Dec 03 '21 at 09:33