You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: I tried adding the parent property but it did not work
_BusinessView is just another widget so the override works.
I have a widget called _ItemsList, which renders inside _BusinessView, and in the build method of the _ItemsList widget I have:
_ItemsList just contains a bunch of items, that, when clicked:
final parentContainer =ProviderScope.containerOf(context);
showModalBottomSheet(
context: context,
isScrollControlled:true,
builder: (context) =>ProviderScope(
// parent: parentContainer,
overrides: [
// this can safely be ignored, I don't think this causes any problem
currentBasketItemProvider.overrideWithValue(BasketItem.fromProduct(product)),
],
child:constProductSheet(),
),
);
NOTE: Again, I tried passing the parent but no solution
I have a problem when I want to override a provider and pass them to a bottom sheet.
Here the provider is overridden:
NOTE: I tried adding the
parent
property but it did not work_BusinessView
is just another widget so the override works.I have a widget called
_ItemsList
, which renders inside_BusinessView
, and in the build method of the_ItemsList
widget I have:Which prints:
Exists here: true
_ItemsList
just contains a bunch of items, that, when clicked:NOTE: Again, I tried passing the
parent
but no solutionAnd, inside
ProductSheet
:Which prints:
Exists in ProductSheet: false
.The text was updated successfully, but these errors were encountered: