1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +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. // If the item is not in cart, we let the user add it.
// We are using context.read() here because the callback // 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. // words, it is executed outside the build method.
var cart = context.read<CartModel>(); var cart = context.read<CartModel>();
cart.add(item); cart.add(item);