Saturday, September 24, 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 function with supplier sample, and it has 5 gadgets of knowledge. Right here is my snippet code

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

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

After I run this code, it would not throw an error, however after I do the mixing take a look at, it throws an error when making an attempt 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 sudden further errors that it may
not deal with. Usually, that is induced 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(Length(seconds: 5));
        closing Widget itemPortfolio =

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



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments