[webview_flutter] Better documentation of Android Platform Views modes #4187
[webview_flutter] Better documentation of Android Platform Views modes #4187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this pull request. The text looks good, I just made some suggestions to fix some spelling mistakes.
```groovy | ||
android { | ||
defaultConfig { | ||
minSdkVersion 19 | ||
} | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove redundant spaces to align code block the same way as the same block mentioned in the "Using Virtual displays" section.
```groovy | |
android { | |
defaultConfig { | |
minSdkVersion 19 | |
} | |
} | |
``` | |
```groovy | |
android { | |
defaultConfig { | |
minSdkVersion 19 | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but they are not redundant - this is inside an enumerated list and the indentation is needed so that the code block remains a part of the correct list item.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, but then maybe also make sure the indentation is also used in the "Using Virtual displays" section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no list in the "Using Virtual displays" section (since it would be a one-element list)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand, isn't it the exact same android/app/build.gradle
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand, isn't it the exact same
android/app/build.gradle
file?
Nevermind, I understand now. It is part of the list in the README.md
, sorry for the confusion.
Co-authored-by: Maurits van Beusekom <maurits@baseflow.com>
Co-authored-by: Maurits van Beusekom <maurits@baseflow.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just one more thing. Could you add a line to the CHANGELOG.md
describing the change using the "NEXT" version? Something like this:
NEXT:
* Improved the documentation on using the different Android Platform View modes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ludwiktrammer sorry for being such a pain, but the you should rebase with master branch as you same to have a merge conflict on the CHANGELOG.md
file now.
@ludwiktrammer Sure. As to the changelog file: should I put literal "NEXT" or the next number ("2.0.12")? |
You can put the literal "NEXT" as it is not necessary to release a new version just for the documentation change. So we will include it with the next version. The "NEXT" literal is a reminder for the next change to include this in the release notes. |
@mvanbeusekom Ok, thanks. Then it's done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you very much for this contribution.
For future reference, this is not our policy. See https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#faq
In this case it's not a big deal since we expect to release webview_flutter again soon and can get it then, but README fixes shouldn't rely on that any more than code fixes. |
Apologies, my bad. Thank you for pointing that out @stuartmorgan. |
Fixes flutter/flutter#85215
Documentation improvement - documents the difference between the two modes more clearly, including the SDK requirement for the Virtual displays mode (which was previously missing, as described in flutter/flutter#85215)
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.