From 1e4fbc36979003795b2c457a98436680226bfd27 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 11 Feb 2021 00:25:41 +1100 Subject: [PATCH] Default to checkCircle if icon not specified --- lib/widget/snacks.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/snacks.dart b/lib/widget/snacks.dart index b6aeda23..c01e3363 100644 --- a/lib/widget/snacks.dart +++ b/lib/widget/snacks.dart @@ -19,7 +19,7 @@ void showSnackIcon(GlobalKey key, String text, {IconData icon, bo // If icon not specified, use the success status if (icon == null) { - icon = (success == true) ? FontAwesomeIcons.checkCircle : FontAwesomeIcons.timesCircle; + icon = (success == false) ? FontAwesomeIcons.timesCircle : FontAwesomeIcons.checkCircle; } key.currentState.showSnackBar(