android – Flutter: Cannot click on listview merchandise on integration take a look at

I’ve an app with a listview characteristic with supplier sample, and it has 5 objects of information. Right here is my snippet code

      key: Key("listview_portfolio"),
      itemBuilder: (context, index) =>
          _itemListPortofolio(information.objects[index], context),
      itemCount: information.objects.size,

    Widget _itemListPortofolio(Portfolio portfolio, BuildContext context) {
      return Container(
        key: ValueKey("item_list_portfolio"),
        margin: EdgeInsets.solely(backside: 16),
        youngster: InkWell(

Once I run this code, it would not throw an error, however once I do the combination take a look at, it throws an error when attempting to click on the merchandise listview

‘package deal:flutter_test/src/binding.dart’: Failed assertion: line 802 pos 14: ‘_pendingExceptionDetails != null’: A take a look at
overrode FlutterError.onError however both did not return it to its authentic state, or had sudden extra errors that it may
not deal with. Sometimes, that is triggered through the use of count on() earlier than restoring FlutterError.onError.
flutter: dart:core-patch/errors_patch.dart 51:61 _AssertionError._doThrowNew

this is my integration take a look at class

    Future<void> tapPortfolioItem({bool scrollUp = false}) async {
        await _tester.pumpAndSettle(Period(seconds: 5));
        closing Widget itemPortfolio =

        await _tester.faucet(discover.byWidget(itemPortfolio));

Leave a Reply