From 409c8763784d528e74b94d2a20c03537dc6b4d39 Mon Sep 17 00:00:00 2001 From: Johannes Vedder Date: Tue, 15 Aug 2023 17:11:22 +0200 Subject: [PATCH] refactor: format --- designer_v2/lib/common_views/search.dart | 3 +-- designer_v2/lib/common_views/standard_table.dart | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/designer_v2/lib/common_views/search.dart b/designer_v2/lib/common_views/search.dart index 55c48e3b9..842e82ce2 100644 --- a/designer_v2/lib/common_views/search.dart +++ b/designer_v2/lib/common_views/search.dart @@ -59,8 +59,7 @@ class SearchState extends State { shadowColor: MaterialStateProperty.resolveWith((states) { return Colors.transparent; }), - ) - ); + )); } @override diff --git a/designer_v2/lib/common_views/standard_table.dart b/designer_v2/lib/common_views/standard_table.dart index 967c77508..f3a7ee6c1 100644 --- a/designer_v2/lib/common_views/standard_table.dart +++ b/designer_v2/lib/common_views/standard_table.dart @@ -247,9 +247,7 @@ class _StandardTableState extends State> { int _sortLogic(T a, T b, {required int columnIndex, required bool? sortAscending, bool? useSortPredicate}) { final sortPredicate = widget.sortColumnPredicates; - if (useSortPredicate != null && useSortPredicate && - sortPredicate != null && sortPredicate[columnIndex] != null - ) { + if (useSortPredicate != null && useSortPredicate && sortPredicate != null && sortPredicate[columnIndex] != null) { final int res; if (sortAscending ?? true) { res = sortPredicate[columnIndex]!(a, b);