Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Aug 16, 2023
1 parent 152e66d commit 595a717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions designer_v2/lib/common_views/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class SearchState extends State<Search> {
shadowColor: MaterialStateProperty.resolveWith((states) {
return Colors.transparent;
}),
)
);
));
}

@override
Expand Down
4 changes: 1 addition & 3 deletions designer_v2/lib/common_views/standard_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@ class _StandardTableState<T> extends State<StandardTable<T>> {

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);
Expand Down

0 comments on commit 595a717

Please sign in to comment.