Snackbar does not show the item name , when delete items from list in Flutter
When I delete items from a list, the snackbar does not show the item name, instead it say: "Instance of ‘IngredientList’ deleted". Is it because .showSnackBar is desprecated? How to fix that? showSnackbar(context, ingredient, index){ Scaffold.of(context).showSnackBar(SnackBar( content:Text(‘$ingredient deleted’), action: SnackBarAction( label: ‘UNDO’.tr(), onPressed: (){ undoDelete(index,ingredient); }, ), )); } >Solution : The desprecated message shown… Read More Snackbar does not show the item name , when delete items from list in Flutter