Skip to content

Conversation

@pedromassango
Copy link
Member

@pedromassango pedromassango commented May 12, 2020

Description

I'm just making DropdownButtonFormField to show new value by overriding the didUpdateWidget() function and replacing the current value with the new widget instance's value.

Related Issues

Fixes #56898
Fixes #56716

Tests

I added the following tests:

  • A test to ensure that the rendered DropdownButtonFormField contains updated text from the passed in value.

Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • No, no existing tests failed, so this is not a breaking change.

@fluttergithubbot fluttergithubbot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels May 12, 2020
@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@shihaohong shihaohong added found in release: 1.17 Found to occur in 1.17 found in release: 1.18 Occurs in 1.18 c: regression It was better in the past than it is now labels May 12, 2020
@shihaohong shihaohong self-assigned this May 12, 2020
Copy link
Contributor

@shihaohong shihaohong left a comment

Choose a reason for hiding this comment

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

LGTM!

@shihaohong
Copy link
Contributor

@pedromassango The PR seems to be failing analyze-linux. Could you fix the analyzer issues in the PR?

@pedromassango
Copy link
Member Author

@pedromassango The PR seems to be failing analyze-linux. Could you fix the analyzer issues in the PR?

Of course

@pedromassango
Copy link
Member Author

@shihaohong looks like there is something wrong with Flutter build task!

@shihaohong
Copy link
Contributor

@pedromassango That's okay. flutter-build indicates whether or not the latest build of Flutter is passing all tests or not. It failing means that one of the recent PRs might have broken tests, or that the infrastructure is not functioning as expected or is down.

Since I applied the waiting for tree to go green label, this PR will be merged as soon as the tree is green.

@shihaohong
Copy link
Contributor

Thanks again for your contribution!

@pedromassango
Copy link
Member Author

@pedromassango That's okay. flutter-build indicates whether or not the latest build of Flutter is passing all tests or not. It failing means that one of the recent PRs might have broken tests, or that the infrastructure is not functioning as expected or is down.

Since I applied the waiting for tree to go green label, this PR will be merged as soon as the tree is green.

Thank you for the clarification

@jlubeck
Copy link
Contributor

jlubeck commented May 13, 2020

@shihaohong What would be the proper way to follow this PR landing on Beta???

@shihaohong
Copy link
Contributor

@jlubeck Here is the general guideline for beta releases: https://github.com/flutter/flutter/wiki/Flutter-build-release-channels#beta, but basically, there should be a beta release roughly once a month.

@pedromassango pedromassango deleted the patch-2 branch May 13, 2020 17:53
@jlubeck
Copy link
Contributor

jlubeck commented May 13, 2020

@shihaohong ok, so there is no notification or something that would tell me when this got merged into Beta?

@shihaohong
Copy link
Contributor

@jlubeck I think the flutter-announce google group is your best bet. New releases and breaking change announcements are made through that channel.

@jlubeck
Copy link
Contributor

jlubeck commented May 13, 2020

Thank you @shihaohong
Great work by the way

@jlubeck
Copy link
Contributor

jlubeck commented May 14, 2020

Hey @shihaohong sorry to bug you one last time. I guess this is more of a general github usage question? I just saw that a new Flutter 1.18.0-11.1.pre release got pushed to the beta channel. My question was mainly how can I check that this PR is included in that release?

@shihaohong
Copy link
Contributor

@jlubeck You can see the commit list on GitHub: https://github.com/flutter/flutter/commits/beta

I don't think this made it into the latest beta release.

pcsosinski pushed a commit to pcsosinski/flutter that referenced this pull request May 26, 2020
…lutter#57037)

* Update DropdownButtonFormField's state if widget updates

Co-authored-by: Shi-Hao Hong <[email protected]>
pcsosinski pushed a commit that referenced this pull request May 28, 2020
* fix segment hit test behavior (#57461)

* Making DropdownButtonFormField to re-render if parent widget changes (#57037)

* Update DropdownButtonFormField's state if widget updates

Co-authored-by: Shi-Hao Hong <[email protected]>

* throw more specific toolexit when git fails during upgrade (#57162)

* [flutter_tools] Refresh VM state before executing hot reload (#53960)

* Update engine hash for 1.17.2

* Remove MaterialControls from examples/flutter_view (#57621)

Co-authored-by: Jenn Magder <[email protected]>

* Prevent building non-android plugins in build aar (#58018)

* Allow FLUTTER_APPLICATION_PATH to be null for misconfigured Xcode projects (#57701)

* Don't import plugins that don't support android in settings.gradle (#54407)

Co-authored-by: LongCatIsLooong <[email protected]>
Co-authored-by: Pedro Massango <[email protected]>
Co-authored-by: Shi-Hao Hong <[email protected]>
Co-authored-by: Christopher Fujino <[email protected]>
Co-authored-by: Jason Simmons <[email protected]>
Co-authored-by: stuartmorgan <[email protected]>
Co-authored-by: Jenn Magder <[email protected]>
Co-authored-by: Emmanuel Garcia <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: regression It was better in the past than it is now f: material design flutter/packages/flutter/material repository. found in release: 1.17 Found to occur in 1.17 found in release: 1.18 Occurs in 1.18 framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DropdownButtonFormField is not re-rendered after value is changed programmatically Unable to set initial value to DropdownButtonFieldForm [1.17.0]

5 participants