2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Edit part category

This commit is contained in:
Oliver Walters
2021-02-11 00:02:00 +11:00
parent 3757010599
commit a62b038faf
2 changed files with 55 additions and 1 deletions

View File

@ -14,6 +14,9 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
void showSnackIcon(GlobalKey<ScaffoldState> key, String text, {IconData icon, bool success}) {
// Hide the current snackbar
key.currentState.hideCurrentSnackBar();
// If icon not specified, use the success status
if (icon == null) {
icon = (success == true) ? FontAwesomeIcons.checkCircle : FontAwesomeIcons.timesCircle;