Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Text Inside ListView - Column or Row #226

Open
hifiaz opened this issue Apr 7, 2023 · 7 comments
Open

fix: Text Inside ListView - Column or Row #226

hifiaz opened this issue Apr 7, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@hifiaz
Copy link

hifiaz commented Apr 7, 2023

Description

when i put text inside column and wrap listview text not found also happen when change column to row

Steps To Reproduce

ListView(
        children: [
          Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              const Text(
                'You have pushed the button this many times:',
              ),
              Text(
                'counter',
                style: Theme.of(context).textTheme.headlineMedium,
              ),
            ],
          ),
        ],
      )
description: My first Fluttium flow.
---
- expectVisible: 'You have pushed the button this many times:'
- expectVisible: 'counter'

Expected Behavior

You have pushed the button this many times: and counter must be pass or found

Screenshots

Screenshot 2023-04-07 at 19 10 46

@hifiaz hifiaz added the bug Something isn't working label Apr 7, 2023
@guidotheelen
Copy link

Also encountered this 🙋‍♂️

@wolfenrain
Copy link
Owner

Thanks for opening this issue, I'll look into it next week to see what exactly is going on with the semantic tree!

@Caio-Rezende
Copy link

Variating inside a ListView with Wrap, Flex, Row or Collumn, gives the same result, not identifiable element in fluttium.
All are related to MultiChildRenderObjectWidget.

@Caio-Rezende
Copy link

just for notice, it may be related to the semantics tree, and it worked in my case to add a Semantics Widget above these elements and add to it a label summarizing what it was supposed to find inside.

@btrautmann
Copy link

@wolfenrain curious about the prioritization of this. We're evaluating fluttium and this seems to be a pretty big blocker, but maybe there's a semi-simple workaround? I tried fiddling with Semantics as @Caio-Rezende suggested but it didn't do the trick in our case.

@wolfenrain
Copy link
Owner

@wolfenrain curious about the prioritization of this. We're evaluating fluttium and this seems to be a pretty big blocker, but maybe there's a semi-simple workaround? I tried fiddling with Semantics as @Caio-Rezende suggested but it didn't do the trick in our case.

I never reported my findings here, so thanks for resurfacing it! So it seems that both the column and row widgets don't expose their child semantics correctly in a few cases, or Fluttium doesn't find them correctly.

In theory it should work with the semantics wrapping but if it is indeed a lookup/expose problem then it will be a blocker either way.

I'll prioritize this issue for the next few days because it is quite annoying 😅

@wolfenrain
Copy link
Owner

@PiotrFLEURY shared some information regarding a similar problem here: #308 (comment)

This might be also what's going on with the columns and rows. Just sharing here for completion sake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants