Sunday, September 25, 2022
HomeiOS Developmentandroid - Flutter: Cannot click on listview merchandise on integration take a...

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 knowledge. Right here is my snippet code

    ListView.builder(
      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),
        little one: InkWell(

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

‘bundle:flutter_test/src/binding.dart’: Failed assertion: line 802 pos 14: ‘_pendingExceptionDetails != null’: A take a look at
overrode FlutterError.onError however both didn’t return it to its unique state, or had surprising extra errors that it may
not deal with. Sometimes, that is prompted by utilizing count on() earlier than restoring FlutterError.onError.
flutter: dart:core-patch/errors_patch.dart 51:61 _AssertionError._doThrowNew

here is my integration take a look at class

    Future<void> tapPortfolioItem({bool scrollUp = false}) async {
        await _tester.pumpAndSettle(Period(seconds: 5));
        closing Widget itemPortfolio =
            discover.byKey(ValueKey("item_list_portfolio")).consider().final.widget;

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

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments