2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 02:35:27 +00:00

More linting again

This commit is contained in:
Oliver
2021-09-28 21:34:11 +10:00
parent 77bac9af36
commit be36811cb3
20 changed files with 68 additions and 75 deletions

View File

@ -86,7 +86,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart?> {
showSnackIcon(
"${partResults.length} ${L10().results}",
success: partResults.length > 0,
success: partResults.isNotEmpty,
icon: FontAwesomeIcons.pollH,
);
@ -161,7 +161,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart?> {
search(context);
if (query.length == 0) {
if (query.isEmpty) {
return ListTile(
title: Text(L10().queryEnter)
);
@ -174,7 +174,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart?> {
);
}
if (partResults.length == 0) {
if (partResults.isEmpty) {
return ListTile(
title: Text(L10().noResults),
subtitle: Text(L10().queryNoResults + " '${query}'")
@ -275,7 +275,7 @@ class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem?> {
showSnackIcon(
"${itemResults.length} ${L10().results}",
success: itemResults.length > 0,
success: itemResults.isNotEmpty,
icon: FontAwesomeIcons.pollH,
);
@ -349,7 +349,7 @@ class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem?> {
search(context);
if (query.length == 0) {
if (query.isEmpty) {
return ListTile(
title: Text(L10().queryEnter)
);
@ -362,7 +362,7 @@ class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem?> {
);
}
if (itemResults.length == 0) {
if (itemResults.isEmpty) {
return ListTile(
title: Text(L10().noResults),
subtitle: Text(L10().queryNoResults + " '${query}'")