diff --git a/client/lib/features/products/products_screen.dart b/client/lib/features/products/products_screen.dart index 39e2107..e23c8c1 100644 --- a/client/lib/features/products/products_screen.dart +++ b/client/lib/features/products/products_screen.dart @@ -176,16 +176,16 @@ class _ProductTile extends ConsumerWidget { confirmDismiss: (_) async { return await showDialog( context: context, - builder: (_) => AlertDialog( + builder: (ctx) => AlertDialog( title: const Text('Удалить продукт?'), content: Text('«${product.name}» будет удалён из списка.'), actions: [ TextButton( - onPressed: () => Navigator.pop(context, false), + onPressed: () => Navigator.pop(ctx, false), child: const Text('Отмена'), ), TextButton( - onPressed: () => Navigator.pop(context, true), + onPressed: () => Navigator.pop(ctx, true), child: const Text('Удалить'), ), ],