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

DartPad autorun generates an incorrect UI on 'Building user interfaces with Flutter' page #10740

Closed
1 task
syedaniq opened this issue Jun 12, 2024 · 5 comments
Closed
1 task
Assignees
Labels
e1-hours Effort: < 8 hrs e2-days Effort: < 5 days from.page-issue Reported in a reader-filed concern infra.dartpad Relates to DartPad component code or functionality p1-high Major but not urgent concern: Resolve in months. Update each month.

Comments

@syedaniq
Copy link

Page URL

https://docs.flutter.dev/ui/

Page source

https:/flutter/website/tree/main/src/content/ui/index.md

Describe the problem

When visiting this page, the code runner output window displays a "hello $i" loop printing 10 times, even though the code on the left side is a centered text widget. However, when the "Run" button is pressed, the correct output is displayed.

image

Expected fix

Output window should be empty like the other ones below.

Additional context

I'm on macOS 14.5, this behavior occured in Firefox and Microsoft Edge.

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@syedaniq syedaniq added the from.page-issue Reported in a reader-filed concern label Jun 12, 2024
@sfshaza2 sfshaza2 added p1-high Major but not urgent concern: Resolve in months. Update each month. e1-hours Effort: < 8 hrs e2-days Effort: < 5 days labels Jun 12, 2024
@johnpryan
Copy link
Contributor

This is an issue with the auto-run feature (dart-lang/dart-pad#2985). It works if you press "Run" again.

@atsansone atsansone added st.triage.ltw infra.dartpad Relates to DartPad component code or functionality labels Jun 12, 2024
@atsansone atsansone changed the title [PAGE ISSUE]: 'Building user interfaces with Flutter' DartPad autorun generates an incorrect UI on 'Building user interfaces with Flutter' page Jun 12, 2024
@johnpryan johnpryan removed their assignment Jun 12, 2024
@sfshaza2
Copy link
Contributor

For me, there IS no run button. @RedBrogdon says: "That's fascinating. It only affects the frame that's onscreen when loaded. There must be some kind of race going on with firing off the compilation request and injecting the code into the editor."

@parlough, can you look into this?

@parlough parlough assigned parlough and unassigned domesticmouse Jun 12, 2024
@johnpryan
Copy link
Contributor

For me, there IS no run button.

That's... concerning. Could you post a screenshot?

@sfshaza2
Copy link
Contributor

@johnpryan, I thought I posted a screenshot. But here it is:
Screenshot 2024-06-12 at 11 00 15 AM

@johnpryan
Copy link
Contributor

Ah, thanks. The Run button will only show when you select the "Code" tab. Filed an issue to track: dart-lang/dart-pad#2998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e1-hours Effort: < 8 hrs e2-days Effort: < 5 days from.page-issue Reported in a reader-filed concern infra.dartpad Relates to DartPad component code or functionality p1-high Major but not urgent concern: Resolve in months. Update each month.
Projects
None yet
Development

No branches or pull requests

6 participants