Skip to content

Conversation

@gdabba-WORK
Copy link
Contributor

Description

Fixed so that when a named Route is repeatedly pushed, loadingPage can be added to that route.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • [-] I have updated/added tests for ALL new/updated/fixed functionality.
  • [-] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • [-] I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

@gdabba-WORK gdabba-WORK changed the title Fix loading page assignment syntax fix: loading page assignment syntax Jan 22, 2026
@gdabba-WORK gdabba-WORK changed the title fix: loading page assignment syntax Fix: loading page assignment syntax Jan 22, 2026
@gdabba-WORK gdabba-WORK changed the title Fix: loading page assignment syntax Fix : loading page assignment syntax Jan 22, 2026
@gdabba-WORK gdabba-WORK changed the title Fix : loading page assignment syntax fix: loading page assignment and cascade syntax Jan 22, 2026
@gdabba-WORK gdabba-WORK changed the title fix: loading page assignment and cascade syntax fix: Assignment and cascade syntax Jan 22, 2026
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what difference this makes?

@gdabba-WORK
Copy link
Contributor Author

The first time _addLoadingPage() is called, _loadingBuilder().addToParent() is called normally. However, if _addLoadingPage() is called more than once, _loadingPage.addToParent() is not called. Therefore, if a named route with maintainState set to false and a page with a long loading time is repeatedly pushed, the loading page will not be displayed as intended. Thanks!

@spydon
Copy link
Member

spydon commented Jan 23, 2026

@gdabba-WORK aaah, that makes sense.

@spydon spydon changed the title fix: Assignment and cascade syntax fix: Loading page should always be possible to add to route Jan 23, 2026
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution

@spydon spydon merged commit a2f5df1 into flame-engine:main Jan 23, 2026
70 of 75 checks passed
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

Successfully merging this pull request may close these issues.

2 participants