More cleanup

This commit is contained in:
Oliver committed 2021-07-15 23:28:55 +10:00
1 parent d2ce3fadf1
commit 83e29777c2
12 files changed
+23 -60

No files matched your search

-4
View File
@@ -199,9 +199,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart?> {
// Ensure the search theme matches the app theme
@override
ThemeData appBarTheme(BuildContext context) {
assert(context != null);
final ThemeData theme = Theme.of(context);
assert(theme != null);
return theme;
}
}
@@ -389,9 +387,7 @@ class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem?> {
// Ensure the search theme matches the app theme
@override
ThemeData appBarTheme(BuildContext context) {
assert(context != null);
final ThemeData theme = Theme.of(context);
assert(theme != null);
return theme;
}
}