Skip to content

Commit

Permalink
Bump flutter_lints from 2.0.3 to 3.0.1 (Dimibe#196)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitrios Begnis <[email protected]>
  • Loading branch information
dependabot[bot] and Dimibe authored Nov 15, 2023
1 parent 529fe25 commit 5fec2f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class GroupedListView<T, E> extends StatefulWidget {
/// Additionally at least one of [itemBuilder] or [indexedItemBuilder] and one
/// of [groupSeparatorBuilder] or [groupHeaderBuilder] must be provieded.
const GroupedListView({
Key? key,
super.key,
required this.elements,
required this.groupBy,
this.groupComparator,
Expand Down Expand Up @@ -252,8 +252,7 @@ class GroupedListView<T, E> extends StatefulWidget {
}) : assert(itemBuilder != null ||
indexedItemBuilder != null ||
interdependentItemBuilder != null),
assert(groupSeparatorBuilder != null || groupHeaderBuilder != null),
super(key: key);
assert(groupSeparatorBuilder != null || groupHeaderBuilder != null);

@override
State<StatefulWidget> createState() => _GroupedListViewState<T, E>();
Expand Down
5 changes: 2 additions & 3 deletions lib/sliver_grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class SliverGroupedListView<T, E> extends StatefulWidget {

/// Creates a [SliverGroupedListView]
const SliverGroupedListView({
Key? key,
super.key,
required this.elements,
required this.groupBy,
this.groupComparator,
Expand All @@ -83,8 +83,7 @@ class SliverGroupedListView<T, E> extends StatefulWidget {
this.separator = const SizedBox.shrink(),
this.footer,
}) : assert(itemBuilder != null || indexedItemBuilder != null),
assert(groupSeparatorBuilder != null || groupHeaderBuilder != null),
super(key: key);
assert(groupSeparatorBuilder != null || groupHeaderBuilder != null);

@override
State<StatefulWidget> createState() => _SliverGroupedListViewState<T, E>();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.3
flutter_lints: ">=2.0.3 <4.0.0"

0 comments on commit 5fec2f4

Please sign in to comment.