Skip to content

Add builtInZoomControls for Android#5

Open
fleoparra wants to merge 22 commits intogreensopinion:mainfrom
fleoparra:main
Open

Add builtInZoomControls for Android#5
fleoparra wants to merge 22 commits intogreensopinion:mainfrom
fleoparra:main

Conversation

@fleoparra
Copy link
Copy Markdown

The built-in zoom mechanisms comprise on-screen zoom controls, which are displayed over the WebView's content, and the use of a pinch gesture to control zooming.

iOS webview has zoom controls integrated by default.

@greensopinion
Copy link
Copy Markdown
Owner

Thanks for the pull request! Can you attach a screenshot?

@fleoparra
Copy link
Copy Markdown
Author

Zoom controls enable zooming and appear when you move content or zoom in with your fingers. They disappear a few seconds after no longer having interaction.

imagen

@greensopinion
Copy link
Copy Markdown
Owner

Looks great! Thanks for the contribution.

I'd prefer to keep this change only related to the functionality provided. If you can eliminate changes to pubspec.lock, .idea and other unrelated files, it will be ready to merge.

Copilot AI review requested due to automatic review settings November 4, 2025 22:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the asset_webview Flutter plugin to support newer versions of Flutter, Dart, Android, and Kotlin, while adding zoom control functionality and improving URL handling.

  • Updates minimum Dart SDK from 2.17.0 to 3.3.0 and Flutter from 3.0.0 to 3.19.0
  • Adds built-in zoom controls feature for WebView
  • Enhances URL loading behavior to handle http/https URLs by opening them in external browser

Reviewed Changes

Copilot reviewed 11 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pubspec.yaml Updates minimum Dart SDK to 3.3.0 and Flutter to 3.19.0
pubspec.lock Removes lockfile (now gitignored)
lib/asset_webview.dart Adds builtInZoomControls parameter and reorders imports
example/pubspec.yaml Updates SDK constraints and cupertino_icons version
example/pubspec.lock Removes lockfile (now gitignored)
example/android/gradle/wrapper/gradle-wrapper.properties Updates Gradle from 6.7 to 7.6.3
example/android/build.gradle Removes buildscript block (modernized configuration)
asset_webview.iml Removes IDE configuration file (now gitignored)
android/src/main/kotlin/com/greensopinion/flutter/asset_webview/AssetWebview.kt Adds zoom controls, implements deprecated shouldOverrideUrlLoading, and adds http/https URL handling
android/src/main/AndroidManifest.xml Removes package attribute (migrates to namespace in build.gradle)
android/gradle/wrapper/gradle-wrapper.properties Removes Gradle wrapper properties
android/gradle.properties Removes gradle properties file
android/build.gradle Updates Kotlin to 2.2.21, Gradle plugin to 8.13.0, SDK to 36, Java to 17, and minimum SDK to 23
.idea/workspace.xml Removes IDE workspace file (now gitignored)
.idea/runConfigurations/example_lib_main_dart.xml Removes IDE run configuration (now gitignored)
.idea/modules.xml Removes IDE modules configuration (now gitignored)
.idea/libraries/Dart_SDK.xml Removes IDE library configuration (now gitignored)
.gitignore Adds .idea/, *.iml, and pubspec.lock to gitignore
Files not reviewed (4)
  • .idea/libraries/Dart_SDK.xml: Language not supported
  • .idea/modules.xml: Language not supported
  • .idea/runConfigurations/example_lib_main_dart.xml: Language not supported
  • .idea/workspace.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
}
)
// can't block here, so we ovreride all requests and then later apply the response
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'ovreride' to 'override'.

Copilot uses AI. Check for mistakes.
Comment thread android/build.gradle

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = JavaVersion.VERSION_17
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

jvmTarget expects a String value, not a JavaVersion constant. This should be jvmTarget = '17' to match the format expected by kotlinOptions.

Suggested change
jvmTarget = JavaVersion.VERSION_17
jvmTarget = '17'

Copilot uses AI. Check for mistakes.
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.

3 participants