Skip to content

Instantly share code, notes, and snippets.

@AbbasHoseini
Last active December 9, 2021 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbbasHoseini/9358c42602cbccff150ea64bbd4ebd7c to your computer and use it in GitHub Desktop.
Save AbbasHoseini/9358c42602cbccff150ea64bbd4ebd7c to your computer and use it in GitHub Desktop.
// DO THIS
// روش صحیح: به این روش کد بزنید
return HumongousWidget(
// ...
child: AnotherMonstrousWidget(
// ...
child: Consumer<CartModel>(
builder: (context, cart, child) {
return Text('Total price: ${cart.totalPrice}');
},
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment