Small typo fix. (#542)

pull/545/head
Nikita Puzankov 4 years ago committed by GitHub
parent e04f686eb2
commit 253cd3d0ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,7 +49,7 @@ class _AddButton extends StatelessWidget {
: () {
// If the item is not in cart, we let the user add it.
// We are using context.read() here because the callback
// is executed whenever the user taps the the button. In other
// is executed whenever the user taps the button. In other
// words, it is executed outside the build method.
var cart = context.read<CartModel>();
cart.add(item);

Loading…
Cancel
Save