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

Size issue #220

Open
oscarshaitan opened this issue Nov 26, 2024 · 5 comments
Open

Size issue #220

oscarshaitan opened this issue Nov 26, 2024 · 5 comments

Comments

@oscarshaitan
Copy link

oscarshaitan commented Nov 26, 2024

in teh version 4.2.3 the followign code was working

LinearPercentIndicator(
                    width: 100,
                    percent: activitySummaryModel.percentageComplete / 100,
                    lineHeight: 20,
                    barRadius: const Radius.circular(6),
                    progressColor: symterraPrimaryCTABlue,
                    center: Text(
                      '${activitySummaryModel.percentageComplete}%',
                      style: const TextStyle(color: Colors.white),
                    ),
                    backgroundColor: darkGrey,
                  )

in the 4.2.4 I have to wrap the widget with a size box, I looked back in the commits this is the only one that change the builder

522b5e9

The error Im getting is LayoutBuilder does not support returning intrinsic dimensions.

SizedBox(
                  height: 20, width: 100,
                  child: ```
LinearPercentIndicator(
                    width: 100,
                    percent: activitySummaryModel.percentageComplete / 100,
                    lineHeight: 20,
                    barRadius: const Radius.circular(6),
                    progressColor: symterraPrimaryCTABlue,
                    center: Text(
                      '${activitySummaryModel.percentageComplete}%',
                      style: const TextStyle(color: Colors.white),
                    ),
                    backgroundColor: darkGrey,
                  ),
                )

Ill take a deep look if I spot the reason. in any case. Gracias!

@diegoveloper
Copy link
Owner

thanks, it would be great if you could add a sample code to reproduce the issue.

@oscarshaitan
Copy link
Author

is quite difficult to extract since is inside a complex set of views.
this is with the 4.2.3 fixed
image

@oscarshaitan
Copy link
Author

could be a combination on my widgets that triggers that I isolate the card widget (just the white part) and looks is working. ill work with the previous version for now. ( I need to deploy ) then Ill give more time to search the cause

@orevial
Copy link

orevial commented Dec 11, 2024

Not sure I know what code to provide to reproduce the issue but I'm also reproducing it, in my case the LinearPercentIndicator is neseted inside a deep tree of row/colunn widgets, including a ListView above...

The issue was introduced by version 4.2.4, version 4.2.3 was working fine.

@oscarshaitan
Copy link
Author

is exactly my case is super deep in the tree.
Dialog-> List>Card->row>Column>Row at minimum
every isolation of the linear works, only when is that deep is when we have the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants