1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Small typo fix. (#542)

This commit is contained in:
Nikita Puzankov
2020-09-15 00:03:45 +04:00
committed by GitHub
parent e04f686eb2
commit 253cd3d0ab

View File

@@ -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);