2 data types that have change notifier.
I want to call notifyListeners for only the Cart Stuff. But the User Constants is also updating, causing a loop, making the ui rebuild and making the app crash.
Any suggestions on how I can rectify this?
Something wrong with the app structure. The update of one will cause update of everything - but no idea why your second is depends from the first one
How does multiprovider normally work? If I call notify listeners on a certain thing type.. Would all listeners in the entire app update regardless of the thing type? Or only those listening to that parti ular thing type
Same ad inherited widget - everything down in the tree will be uodated
Be sure you didn't declare variables in the build
Обсуждают сегодня