Repository navigation
Added CupertinoFormSection, CupertinoSplitFormRow, and CupertinoTextFormField - #70676
Conversation
b3d9c50 to
7b95d06
Compare
|
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. |
xster
left a comment
There was a problem hiding this comment.
Sorry I have to finish later tonight. Some notes on the first file.
There was a problem hiding this comment.
It's a bit of a hidden feature. But if there's verbatim doc in various places, you can search for usages of {@macro ... in various places
There was a problem hiding this comment.
Keeping this comment to see if my use of macro was correct. Will close once the documentation tool passes here.
xster
left a comment
There was a problem hiding this comment.
Cool, overall approach looks good. I think we're ready for tests.
1a7f636 to
ffa91c3
Compare
There was a problem hiding this comment.
nit: is there a reason for making margins nullable, instead of using _kDefaultMargins as its default in the constructor?
There was a problem hiding this comment.
Here's my thought process:
CupertinoTextFormFieldRow also has a margins property that is passed onto CupertinoFormRow upon its composition. I would have to have the same private constant defined in two files if I wanted to have a non-nullable margins property, so i thought it was better to leave the default behavior as optional chaining instead. The alternative would be to create some class specifically to hold that default value, and then use that in both the text field row and the normal row. Is there a better way to go about this?
|
you should be able to run |
|
I made some changes to the CupertinoFormSection API @LongCatIsLooong @xster
|
xster
left a comment
There was a problem hiding this comment.
Section and row still need tests but otherwise still LGTM
d7dac09 to
cd7c964
Compare
|
Rebased on top of master |
|
This pull request is not suitable for automatic merging in its current state.
|
…tinoTextFormField (flutter#70676)"
Description
Added
CupertinoFormSection,CupertinoSplitFormRow, andCupertinoTextFormField.Demo:
https://github.com/DanielEdrisian/SharedStorage/blob/main/demo%20forms.mov
Related Issues
#69916
#26745
Tests
No tests.
Replace this with a list of the tests that you added as part of this PR. A change in behavior with no test covering it
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See Test Coverage.
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.