mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-04 07:15:46 +00:00 
			
		
		
		
	Default to checkCircle if icon not specified
This commit is contained in:
		@@ -19,7 +19,7 @@ void showSnackIcon(GlobalKey<ScaffoldState> 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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user