Skip to content

Commit

Permalink
removed dependency on collection
Browse files Browse the repository at this point in the history
  • Loading branch information
letsar committed Jan 1, 2022
1 parent ebd911a commit 31ed723
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/widgets/sliver_aligned_grid.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:collection/collection.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_staggered_grid_view/src/rendering/sliver_simple_grid_delegate.dart';
import 'package:flutter_staggered_grid_view/src/widgets/uniform_track.dart';
Expand Down Expand Up @@ -150,7 +149,7 @@ class SliverAlignedGrid extends StatelessWidget {
final children = [
for (int i = 0; i < crossAxisCount; i++)
_buildItem(context, startIndex + i, itemCount),
].whereNotNull();
].whereType<Widget>();

if (children.isEmpty) {
return null;
Expand Down

0 comments on commit 31ed723

Please sign in to comment.