mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 21:35:42 +00:00 
			
		
		
		
	Start of unit tests for the actual API code
This commit is contained in:
		| @@ -1,21 +1,19 @@ | ||||
|  | ||||
| /* | ||||
|  * Display a snackbar with: | ||||
|  * | ||||
|  * a) Text on the left | ||||
|  * b) Icon on the right | ||||
|  * | ||||
|  * | Text          <icon> | | ||||
|  */ | ||||
|  | ||||
| import "package:flutter/material.dart"; | ||||
| import "package:font_awesome_flutter/font_awesome_flutter.dart"; | ||||
| import "package:one_context/one_context.dart"; | ||||
| import "package:inventree/l10.dart"; | ||||
|  | ||||
|  | ||||
| /* | ||||
|  * Display a configurable 'snackbar' at the bottom of the screen | ||||
|  */ | ||||
| void showSnackIcon(String text, {IconData? icon, Function()? onAction, bool? success, String? actionText}) { | ||||
|  | ||||
|   // Escape quickly if we do not have context | ||||
|   if (!OneContext.hasContext) { | ||||
|     return; | ||||
|   } | ||||
|  | ||||
|   BuildContext? context = OneContext().context; | ||||
|  | ||||
|   if (context != null) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user