fluttercommunity / fluttercommunity/flutter_webview_plugin

Android text selection handle color

Ouverte
#681 0 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
1.5k
Forks
938
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello, we are having a problem changing the webview text handle colors, it's not possible to change using `ThemeData` -> `textSelectionColor` or `cursorColor`

## System info

Issue occurs on: Android only (iOS seems to have a different text handle)
Plugin version: 0.3.10
Flutter doctor output:

```
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[!] Android Studio (not installed)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.43.0)
[✓] Connected device (1 available)

! Doctor found issues in 3 categories.
```

## Steps to Reproduce

Just create any project with a `WebviewScaffold`, the text selection handle is green, it's not possible to change using `textSelectionColor` or `cursorColor` from `ThemeData`.

1. Access any URL that have a textfield
2. Type something on the textfield
3. Select the text on the textfield

![image](https://user-images.githubusercontent.com/8935865/76358820-df8a0f80-62f8-11ea-8f18-d8a3fd31c9fc.png)
https://gist.github.com/igormcampos/a9660d3802505d5e83161fbde4344197

## Logs

```
[ +13 ms] executing: [/home/user/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ ] executing: [/home/user/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +14 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.12.13+hotfix.8-0-g0b8abb472
[ +4 ms] executing: [/home/user/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/user/flutter/] git ls-remote --get-url origin
[ +3 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +31 ms] executing: [/home/user/flutter/] git rev-parse --abbrev-ref HEAD
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +65 ms] executing: /home/user/Android/Sdk/platform-tools/adb devices -l
[ +4 ms] Exit code 0 from: /home/user/Android/Sdk/platform-tools/adb devices -l
[ ] List of devices attached
CB512BJ73A device usb:1-1 product:F8332 model:F8332 device:F8332 transport_id:17
[ +12 ms] /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell getprop
[ +153 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +33 ms] Found plugin flutter_webview_plugin at /home/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.10+1/
[ +43 ms] Found plugin flutter_webview_plugin at /home/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.10+1/
[ +42 ms] Generating /home/user/projects/webview_handlers/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +40 ms] ro.hardware = qcom
[ +43 ms] Launching lib/main.dart on F8332 in debug mode...
[ +6 ms] executing: /home/user/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/user/projects/webview_handlers/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +7 ms] Exit code 0 from: /home/user/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/user/projects/webview_handlers/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.webview_handlers" (Raw: "com.example.webview_handlers")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="webview_handlers" (Raw: "webview_handlers")
A: android:icon(0x01010002)=@0x7f0b0000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=28)
A: android:theme(0x01010000)=@0x7f0d00a1
A: android:name(0x01010003)="com.example.webview_handlers.MainActivity" (Raw: "com.example.webview_handlers.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=35)
E: action (line=36)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=38)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=45)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: provider (line=49)
A: android:name(0x01010003)="androidx.core.content.FileProvider" (Raw: "androidx.core.content.FileProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.webview_handlers.fileprovider" (Raw: "com.example.webview_handlers.fileprovider")
A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
E: meta-data (line=54)
A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
A: android:resource(0x01010025)=@0x7f0f0000
[ +6 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell -x logcat -v time -t 1
[ +78 ms] Exit code 0 from: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell -x logcat -v time -t 1
[ ] --------- beginning of main
03-10 18:00:32.265 W/Assist ( 7133): *** EventLogNativeAccessor: Tag code -1 is not known by eventlog
[ +19 ms] executing: /home/user/Android/Sdk/platform-tools/adb version
[ +3 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A logcat -v time -T 03-10 18:00:32.265
[ +30 ms] Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /home/user/Android/Sdk/platform-tools/adb
[ +2 ms] executing: /home/user/Android/Sdk/platform-tools/adb start-server
[ +14 ms] Building APK
[ +13 ms] Running Gradle task 'assembleDebug'...
[ +1 ms] gradle.properties already sets `android.enableR8`
[ +2 ms] Using gradle from /home/user/projects/webview_handlers/android/gradlew.
[ +11 ms] executing: [/home/user/projects/webview_handlers/android/] /home/user/projects/webview_handlers/android/gradlew -Pverbose=true -Ptarget=/home/user/projects/webview_handlers/lib/main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug
[+2814 ms] > Task :app:compileFlutterBuildDebug
[ ] [ +14 ms] executing: [/home/user/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +21 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ ] [ ] executing: [/home/user/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ ] [ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v1.12.13+hotfix.8-0-g0b8abb472
[ ] [ +5 ms] executing: [/home/user/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/stable
[ ] [ ] executing: [/home/user/flutter/] git ls-remote --get-url origin
[ ] [ +3 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +32 ms] executing: [/home/user/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +15 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +59 ms] Initializing file store
[ ] [ +8 ms] Done initializing file store
[ ] [+1028 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[ ] [ +9 ms] /home/user/flutter/bin/cache/dart-sdk/bin/dart /home/user/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform
--packages /home/user/projects/webview_handlers/.packages --output-dill /home/user/projects/webview_handlers/.dart_tool/flutter_build/68f38e580aeef3647ad23af0ba4eccc3/app.dill --depfile
/home/user/projects/webview_handlers/.dart_tool/flutter_build/68f38e580aeef3647ad23af0ba4eccc3/kernel_snapshot.d package:webview_handlers/main.dart
[+3789 ms] [+4012 ms] kernel_snapshot: Complete
[ +200 ms] [ +255 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged, InvalidatedReason.outputMissing}
[ +199 ms] [ +123 ms] debug_android_application: Complete
[ ] [ +9 ms] Persisting file store
[ ] [ +3 ms] Done persisting file store
[ ] [ +2 ms] build succeeded.
[ ] [ +8 ms] "flutter assemble" took 5,543ms.
[ +99 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ ] > Task :flutter_webview_plugin:preBuild UP-TO-DATE
[ ] > Task :flutter_webview_plugin:preDebugBuild UP-TO-DATE
[ ] > Task :flutter_webview_plugin:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:checkDebugManifest UP-TO-DATE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:compileDebugRenderscript NO-SOURCE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :flutter_webview_plugin:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders UP-TO-DATE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugShaders UP-TO-DATE
[ ] > Task :flutter_webview_plugin:compileDebugShaders UP-TO-DATE
[ ] > Task :flutter_webview_plugin:generateDebugAssets UP-TO-DATE
[ ] > Task :flutter_webview_plugin:packageDebugAssets UP-TO-DATE
[ ] > Task :app:mergeDebugAssets
[ +196 ms] > Task :app:copyFlutterAssetsDebug
[ +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[ ] > Task :app:generateDebugResValues UP-TO-DATE
[ ] > Task :app:generateDebugResources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:generateDebugResValues UP-TO-DATE
[ ] > Task :flutter_webview_plugin:compileDebugRenderscript NO-SOURCE
[ ] > Task :flutter_webview_plugin:generateDebugResources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:packageDebugResources UP-TO-DATE
[ ] > Task :app:mergeDebugResources UP-TO-DATE
[ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ ] > Task :flutter_webview_plugin:checkDebugManifest UP-TO-DATE
[ ] > Task :flutter_webview_plugin:processDebugManifest UP-TO-DATE
[ +97 ms] > Task :app:processDebugManifest UP-TO-DATE
[ ] > Task :flutter_webview_plugin:parseDebugLibraryResources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:generateDebugRFile UP-TO-DATE
[ ] > Task :app:processDebugResources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :flutter_webview_plugin:javaPreCompileDebug UP-TO-DATE
[ ] > Task :flutter_webview_plugin:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :flutter_webview_plugin:bundleLibCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugKotlin UP-TO-DATE
[ ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileDebugSources UP-TO-DATE
[ ] > Task :app:processDebugJavaRes NO-SOURCE
[ ] > Task :flutter_webview_plugin:processDebugJavaRes NO-SOURCE
[ ] > Task :flutter_webview_plugin:bundleLibResDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :flutter_webview_plugin:bundleLibRuntimeDebug UP-TO-DATE
[ ] > Task :flutter_webview_plugin:createFullJarDebug UP-TO-DATE
[ ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ +97 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[ ] > Task :app:mergeExtDexDebug UP-TO-DATE
[ ] > Task :app:mergeDexDebug UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :flutter_webview_plugin:stripDebugDebugSymbols UP-TO-DATE
[ ] > Task :flutter_webview_plugin:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ ] Compatible side by side NDK version was not found.
[+1099 ms] > Task :app:packageDebug
[ ] > Task :app:assembleDebug
[ ] > Task :flutter_webview_plugin:extractDebugAnnotations UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ +57 ms] > Task :flutter_webview_plugin:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :flutter_webview_plugin:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :flutter_webview_plugin:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[ ] > Task :flutter_webview_plugin:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ ] > Task :flutter_webview_plugin:bundleDebugAar UP-TO-DATE
[ ] > Task :flutter_webview_plugin:mergeDebugResources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:compileDebugSources UP-TO-DATE
[ ] > Task :flutter_webview_plugin:assembleDebug UP-TO-DATE
[ ] BUILD SUCCESSFUL in 8s
[ ] 59 actionable tasks: 5 executed, 54 up-to-date
[ +355 ms] Running Gradle task 'assembleDebug'... (completed in 9.0s)
[ +121 ms] calculateSha: LocalDirectory: '/home/user/projects/webview_handlers/build/app/outputs/apk'/app.apk
[ +46 ms] calculateSha: reading file took 46us
[ +499 ms] calculateSha: computing sha took 498us
[ +2 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[ +2 ms] executing: /home/user/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/user/projects/webview_handlers/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +8 ms] Exit code 0 from: /home/user/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/user/projects/webview_handlers/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.webview_handlers" (Raw: "com.example.webview_handlers")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="webview_handlers" (Raw: "webview_handlers")
A: android:icon(0x01010002)=@0x7f0b0000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=28)
A: android:theme(0x01010000)=@0x7f0d00a1
A: android:name(0x01010003)="com.example.webview_handlers.MainActivity" (Raw: "com.example.webview_handlers.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=35)
E: action (line=36)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=38)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=45)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: provider (line=49)
A: android:name(0x01010003)="androidx.core.content.FileProvider" (Raw: "androidx.core.content.FileProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.webview_handlers.fileprovider" (Raw: "com.example.webview_handlers.fileprovider")
A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
E: meta-data (line=54)
A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
A: android:resource(0x01010025)=@0x7f0f0000
[ +2 ms] Stopping app 'app.apk' on F8332.
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell am force-stop com.example.webview_handlers
[ +138 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell pm list packages com.example.webview_handlers
[+1035 ms] package:com.example.webview_handlers
[ +8 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell cat /data/local/tmp/sky.com.example.webview_handlers.sha1
[ +76 ms] 8612fad7f2682762a788f60450f954edcd2a26a1
[ +2 ms] Installing APK.
[ +4 ms] executing: /home/user/Android/Sdk/platform-tools/adb version
[ +22 ms] Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /home/user/Android/Sdk/platform-tools/adb
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb start-server
[ +20 ms] Installing build/app/outputs/apk/app.apk...
[ ] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A install -t -r /home/user/projects/webview_handlers/build/app/outputs/apk/app.apk
[+8938 ms] Performing Streamed Install
Success
[ ] Installing build/app/outputs/apk/app.apk... (completed in 8.9s)
[ ] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell echo -n 6887be8150ad2b47d8dcc32a418b06936840a142 > /data/local/tmp/sky.com.example.webview_handlers.sha1
[ +27 ms] F8332 startApp
[ +3 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true
--ez enable-checked-mode true --ez verify-entry-points true com.example.webview_handlers/com.example.webview_handlers.MainActivity
[ +264 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.webview_handlers/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +497 ms] D/FlutterActivity(32754): Using the launch theme as normal theme.
[ +3 ms] D/FlutterActivityAndFragmentDelegate(32754): Setting up FlutterEngine.
[ ] D/FlutterActivityAndFragmentDelegate(32754): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[+1530 ms] D/FlutterActivityAndFragmentDelegate(32754): Attaching FlutterEngine to the Activity that owns this Fragment.
[ +47 ms] Observatory URL on device: http://127.0.0.1:55734/63NgCjv1u6k=/
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s CB512BJ73A forward tcp:0 tcp:55734
[ +6 ms] 36201
[ ] Forwarded host port 36201 to device port 55734 for Observatory
[ +9 ms] Connecting to service protocol: http://127.0.0.1:36201/63NgCjv1u6k=/
[ +8 ms] D/FlutterView(32754): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@23a076
[ +14 ms] D/FlutterActivityAndFragmentDelegate(32754): Executing Dart entrypoint: main, and sending initial route: /
[ +480 ms] Successfully connected to service protocol: http://127.0.0.1:36201/63NgCjv1u6k=/
[ +9 ms] Sending to VM service: getVM({})
[ +14 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc MSM8996, operatingSystem: android, targetCPU: arm64, version: 2.7.0 (Fri Dec 6 16:26:51 2019 +0100) on
"android_arm64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pi...
[ +7 ms] Sending to VM service: getIsolate({isolateId: isolates/1215059476213979})
[ +4 ms] Sending to VM service: _flutter.listViews({})
[ +15 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7b46e52620, isolate: {type: @Isolate, fixedId: true, id: isolates/1215059476213979, name:
main.dart$main-1215059476213979, number: 1215059476213979}}]}
[ +4 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: webview_handlers})
[ +122 ms] Result: {type: Isolate, id: isolates/1215059476213979, name: main, number: 1215059476213979, _originNumber: 1215059476213979, startTime: 1583874063138, _heaps: {new: {type: HeapSpace, name: new,
vmName: Scavenger, collections: 0, avgCollectionPeriodMillis...
[ +7 ms] Result: {type: FileSystem, name: webview_handlers, uri: file:///data/user/0/com.example.webview_handlers/code_cache/webview_handlersGMNMRA/webview_handlers/}
[ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.webview_handlers/code_cache/webview_handlersGMNMRA/webview_handlers/)
[ +1 ms] Updating assets
[ +53 ms] Syncing files to device F8332...
[ ] Scanning asset files
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +4 ms] /home/user/flutter/bin/cache/dart-sdk/bin/dart /home/user/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tool.WZSTEB/app.dill --packages
/home/user/projects/webview_handlers/.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme
org-dartlang-root
[ +5 ms] <- compile package:webview_handlers/main.dart
[+1308 ms] W/ResourceType(32754): Found multiple library tables, ignoring...
[ ] I/WebViewFactory(32754): Loading com.android.chrome version 80.0.3987.132 (code 398713232)
[ +337 ms] I/cr_LibraryLoader(32754): Loaded native library version number "80.0.3987.132"
[ +63 ms] W/ResourceType(32754): Failure getting entry for 0x7f130543 (t=18 e=1347) (error -2147483647)
[ +144 ms] W/chromium(32754): [WARNING:dns_config_service_posix.cc(341)] Failed to read DnsConfig.
[ +191 ms] W/cr_media(32754): Requires BLUETOOTH permission
[ +135 ms] D/NetworkSecurityConfig(32754): No Network Security Config specified, using platform default
[ +44 ms] W/VideoCapabilities(32754): Unrecognized profile 2130706433 for video/avc
[ ] W/VideoCapabilities(32754): Unrecognized profile 2130706434 for video/avc
[ +22 ms] W/VideoCapabilities(32754): Unrecognized profile 2130706433 for video/avc
[ ] W/VideoCapabilities(32754): Unrecognized profile 2130706434 for video/avc
[ ] W/VideoCapabilities(32754): Unrecognized profile 2130706433 for video/avc
[ ] W/VideoCapabilities(32754): Unrecognized profile 2130706434 for video/avc
[ +36 ms] W/VideoCapabilities(32754): Unsupported mime video/mp4v-esdp
[ +29 ms] I/VideoCapabilities(32754): Unsupported profile 4 for video/mp4v-es
[ +258 ms] I/zygote64(32754): Do partial code cache collection, code=26KB, data=28KB
[ +6 ms] I/zygote64(32754): After code cache collection, code=26KB, data=28KB
[ ] I/zygote64(32754): Increasing code cache capacity to 128KB
[+1485 ms] I/zygote64(32754): Do partial code cache collection, code=60KB, data=54KB
[ ] I/zygote64(32754): After code cache collection, code=60KB, data=54KB
[ +1 ms] I/zygote64(32754): Increasing code cache capacity to 256KB
[ +3 ms] Updating files
[ +172 ms] DevFS: Sync finished
[ +1 ms] Syncing files to device F8332... (completed in 4,256ms, longer than expected)
[ ] Synced 0.9MB.
[ ] Sending to VM service: _flutter.listViews({})
[ +5 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7b46e52620, isolate: {type: @Isolate, fixedId: true, id: isolates/1215059476213979, name:
main.dart$main-1215059476213979, number: 1215059476213979}}]}
[ ] <- accept
[ ] Connected to _flutterView/0x7b46e52620.
[ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[ ] An Observatory debugger and profiler on F8332 is available at: http://127.0.0.1:36201/63NgCjv1u6k=/
[ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+3320 ms] I/AssistStructure(32754): Flattened final assist data: 1340 bytes, containing 1 windows, 3 views
[+5592 ms] I/zygote64(32754): Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
[ +11 ms] I/zygote64(32754): Do full code cache collection, code=124KB, data=94KB
[ +4 ms] I/zygote64(32754): After code cache collection, code=118KB, data=72KB
[ +33 ms] I/zygote64(32754): Do partial code cache collection, code=119KB, data=76KB
[ ] I/zygote64(32754): After code cache collection, code=119KB, data=76KB
[ ] I/zygote64(32754): Increasing code cache capacity to 512KB

```

No issues found using `flutter analyze`

```
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.8 at /home/user/flutter
• Framework revision 0b8abb4724 (4 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/user/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/user/Android/Sdk
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /opt/idea-IU-193.6015.39
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.43.0)
• VS Code at /usr/share/code
• Flutter extension version 3.8.1

[✓] Connected device (1 available)
• F8332 • CB512BJ73A • android-arm64 • Android 8.0.0 (API 26)

! Doctor found issues in 3 categories.
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par reproduire le comportement propre à Android avec un WebviewScaffold et un champ de texte, en utilisant la version du plugin signalée et les paramètres de ThemeData. Suivez l’intégration d’Android WebView et déterminez où la couleur de la poignée de sélection du texte est définie ; le travail est terminé lorsque la couleur de la poignée réagit à la configuration concernée sans modifier le comportement iOS signalé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
android, java
Domaine
mobile-dev
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.