Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iOS can set application locale before view controller is set#176592

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
chunhtai wants to merge2 commits intoflutter:master
base:master
Choose a base branch
Loading
fromchunhtai:issues/176478

Conversation

chunhtai
Copy link
Contributor

fixes#176478

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel onDiscord.

Note: The Flutter team is currently trialing the use ofGemini Code Assist for GitHub. Comments from thegemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actionsgithub-actionsbot added platform-iosiOS applications specifically engineflutter/engine related. See also e: labels. labelsOct 6, 2025
Copy link
Contributor

@gemini-code-assistgemini-code-assistbot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifiesPlatformViewIOS to allow setting the application locale even before aFlutterViewController is attached. It achieves this by caching the locale in a newapplication_locale_ member variable and applying it when the view controller is set. The change also includes a new unit test to verify this behavior. My review provides suggestions to improve code maintainability by refactoring duplicated logic and to fix a potential syntax error in the new test.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vashworthvashworthAwaiting requested review from vashworth

1 more reviewer

@gemini-code-assistgemini-code-assist[bot]gemini-code-assist[bot] left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
engineflutter/engine related. See also e: labels.platform-iosiOS applications specifically
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Crash in Add to App when using local engine during PlatformViewIOS::SetApplicationLocale
1 participant
@chunhtai

[8]ページ先頭

©2009-2025 Movatter.jp