Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Sep 21, 2024
1 parent c771510 commit b0154dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/searchfield_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1563,10 +1563,9 @@ void main() {
// });
testWidgets('SearchInputdecoration values can be set', (widgetTester) async {
final suggestions = List.generate(500, (index) => index.toString())
.map((e) => SearchFieldListItem<String>(e))
.map(SearchFieldListItem<String>.new)
.toList();

double scrollOffset = 0.0;
await widgetTester.pumpWidget(_boilerplate(
child: SearchField<String>(
key: const Key('searchfield'),
Expand Down Expand Up @@ -1617,10 +1616,6 @@ void main() {
suffix: Container(),
),
suggestionState: Suggestion.expand,
onScroll: (offset, maxOffset) {
print(offset);
scrollOffset = offset;
},
)));

// Find the SearchField widget
Expand Down

0 comments on commit b0154dc

Please sign in to comment.