mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Edit part category
This commit is contained in:
parent
3757010599
commit
a62b038faf
2 changed files with 55 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue