-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemse: device-specificOnly manifests on certain devicesOnly manifests on certain devicesf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.17Found to occur in 1.17Found to occur in 1.17found in release: 1.18Occurs in 1.18Occurs in 1.18frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
Description
When using the autocomplete function on my Galaxy A50 (on all emulators so far there haven't been any issues) the whole input of the TextField will get pasted again into the TextField when I re-focus the TextField and type in a "." or "@" character followed by another arbitrary character.
Steps to reproduce:
- Using the autocomplete function to complete a word in a TextField
- Change the focus to another TextField
- Change the focus back the previous TextField and delete the whitespace character
- Type in a "." or "@" character and another arbitrary character
Code:
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(),
home: Scaffold(
body: Column(
children: <Widget>[
Container(
height: 200,
),
TextField(),
TextField()
],
),
),
);
}
}
Logs:
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ shell am force-stop com.example.bug
[ +148 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ shell pm list packages com.example.bug
[ +212 ms] package:com.example.bug
[ +3 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ shell cat /data/local/tmp/sky.com.example.bug.sha1
[ +44 ms] fb0e0ec1ee2dedd345aa4bdb24d5b09f6663821d
[ ] Installing APK.
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb version
[ +6 ms] Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /home/user/Android/Sdk/platform-tools/adb
[ ] executing: /home/user/Android/Sdk/platform-tools/adb start-server
Installing build/app/outputs/apk/app.apk...
[ +7 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ install -t -r /home/user/tmp/bug/bug/build/app/outputs/apk/app.apk
[+14202 ms] Performing Streamed Install
Success
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ shell echo -n c13daa649e4024b47c851125b5c9aa43bcae0520 > /data/local/tmp/sky.com.example.bug.sha1
[ +131 ms] SM A505FN startApp
[ +2 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ 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.bug/com.example.bug.MainActivity
[ +213 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[+2016 ms] Observatory URL on device: http://127.0.0.1:41577/M8wqmJvr1mk=/
[ +1 ms] executing: /home/user/Android/Sdk/platform-tools/adb -s R58M75PN4CJ forward tcp:0 tcp:41577
[ +7 ms] 44021
[ ] Forwarded host port 44021 to device port 41577 for Observatory
[ +12 ms] Connecting to service protocol: http://127.0.0.1:44021/M8wqmJvr1mk=/
[ +422 ms] Successfully connected to service protocol: http://127.0.0.1:44021/M8wqmJvr1mk=/
[ +2 ms] Sending to VM service: getVM({})
[ +7 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Unknown, operatingSystem: android, targetCPU: arm64, version: 2.8.0-dev.20.10 (beta) (Mon Apr 20 12:00:58 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 24138,...
[ +3 ms] Sending to VM service: getIsolate({isolateId: isolates/3251053982232915})
[ +2 ms] Sending to VM service: _flutter.listViews({})
[ +9 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7c4c073120, isolate: {type: @Isolate, fixedId: true, id: isolates/3251053982232915, name: main.dart$main-3251053982232915, number: 3251053982232915}}]}
[ +7 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: bug})
[ +64 ms] Result: {type: Isolate, id: isolates/3251053982232915, name: main, number: 3251053982232915, _originNumber: 3251053982232915, startTime: 1587987009666, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis...
[ +9 ms] D/SurfaceView(24138): surfaceChanged (810,1660) 1 #8 io.flutter.embedding.android.FlutterSurfaceView{6805a5a V.E...... ......ID 0,0-810,1660}
[ +16 ms] Result: {type: FileSystem, name: bug, uri: file:///data/user/0/com.example.bug/code_cache/bugZCIZBJ/bug/}
[ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugZCIZBJ/bug/)
[ +2 ms] Updating assets
Syncing files to device SM A505FN...
[ +63 ms] Scanning asset files
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:bug/main.dart 970c6f27-cd05-417d-8e88-a17a0df105c5
[ ] <- 970c6f27-cd05-417d-8e88-a17a0df105c5
[ ] D/ViewRootImpl@715ea05[MainActivity](24138): Relayout returned: old=[0,0][810,1755] new=[0,0][810,1755] result=0x3 surface={true 533410205696} changed=false
[ +34 ms] D/ViewRootImpl@715ea05[MainActivity](24138): MSG_RESIZED: frame=[0,0][810,1755] ci=[0,62][0,95] vi=[0,62][0,95] or=1
[ ] D/ViewRootImpl@715ea05[MainActivity](24138): MSG_WINDOW_FOCUS_CHANGED 1 1
[ +1 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ +3 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ +1 ms] I/InputMethodManager(24138): startInputInner - mService.startInputOrWindowGainedFocus
[ +4 ms] Updating files
[ +76 ms] D/InputTransport(24138): Input channel constructed: fd=100
[ +8 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ +205 ms] DevFS: Sync finished
[ +1 ms] Synced 0.9MB.
[ +1 ms] Sending to VM service: _flutter.listViews({})
[ +14 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7c4c073120, isolate: {type: @Isolate, fixedId: true, id: isolates/3251053982232915, name: main.dart$main-3251053982232915, number: 3251053982232915}}]}
[ ] <- accept
[ ] Connected to _flutterView/0x7c4c073120.
[ +532 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({enabled: false, isolateId: isolates/3251053982232915})
[ ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({enabled: false, isolateId: isolates/3251053982232915})
[+1297 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[ +41 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[ ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[ ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[+6726 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 0
[ +70 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 1
[ +138 ms] D/InputMethodManager(24138): SSI - flag : 0 Pid : 24138 view : com.example.bug
[ +10 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=io.flutter.plugin.editing.InputConnectionAdaptor@7eebf57 mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ +4 ms] I/InputMethodManager(24138): startInputInner - mService.startInputOrWindowGainedFocus
[ +3 ms] D/InputTransport(24138): Input channel constructed: fd=103
[ ] D/InputTransport(24138): Input channel destroyed: fd=100
[ ] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ +4 ms] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ +2 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=io.flutter.plugin.editing.InputConnectionAdaptor@6f0e72d mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ +1 ms] I/InputMethodManager(24138): startInputInner - mService.startInputOrWindowGainedFocus
[ +5 ms] D/InputTransport(24138): Input channel constructed: fd=102
[ ] D/InputTransport(24138): Input channel destroyed: fd=103
[ +16 ms] W/IInputConnectionWrapper(24138): getExtractedText on inactive InputConnection
[ +149 ms] D/ViewRootImpl@715ea05[MainActivity](24138): MSG_RESIZED: frame=[0,0][810,1755] ci=[0,62][0,752] vi=[0,62][0,752] or=1
[ +21 ms] D/ViewRootImpl@715ea05[MainActivity](24138): Relayout returned: old=[0,0][810,1755] new=[0,0][810,1755] result=0x1 surface={true 533410205696} changed=false
[+5008 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 0
[ +50 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 1
[ +42 ms] D/InputMethodManager(24138): SSI - flag : 0 Pid : 24138 view : com.example.bug
[ ] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ +10 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=io.flutter.plugin.editing.InputConnectionAdaptor@c0b9bc8 mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ +4 ms] I/InputMethodManager(24138): startInputInner - mService.startInputOrWindowGainedFocus
[ +2 ms] D/InputTransport(24138): Input channel constructed: fd=103
[ ] D/InputTransport(24138): Input channel destroyed: fd=102
[ +595 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 0
[ +48 ms] D/ViewRootImpl@715ea05[MainActivity](24138): ViewPostIme pointer 1
[ +45 ms] D/InputMethodManager(24138): SSI - flag : 0 Pid : 24138 view : com.example.bug
[ +3 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ +19 ms] D/InputMethodManager(24138): prepareNavigationBarInfo() DecorView@a317249[MainActivity]
[ ] D/InputMethodManager(24138): getNavigationBarColor() -855310
[ ] V/InputMethodManager(24138): Starting input: tba=com.example.bug ic=io.flutter.plugin.editing.InputConnectionAdaptor@c22ac74 mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[ ] D/InputMethodManager(24138): startInputInner - Id : 0
[ ] I/InputMethodManager(24138): startInputInner - mService.startInputOrWindowGainedFocus
[ +5 ms] D/InputTransport(24138): Input channel constructed: fd=102
[ ] D/InputTransport(24138): Input channel destroyed: fd=103
[+1837 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ ] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[+1928 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ ] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ +966 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ ] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ +937 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ +6 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[+1129 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ ] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ +933 ms] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ ] E/SpannableStringBuilder(24138): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
flutter doctor -v:
[✓] Flutter (Channel beta, v1.17.0-3.2.pre, on Linux, locale en_US.UTF-8)
• Flutter version 1.17.0-3.2.pre at /opt/flutter
• Framework revision 2a7bc389f2 (5 days ago), 2020-04-21 20:34:20 -0700
• Engine revision 4c8c31f591
• Dart version 2.8.0 (build 2.8.0-dev.20.10)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at /home/jupiter/Android/Sdk
• Platform android-29, build-tools 29.0.0
• ANDROID_HOME = /home/user/Android/Sdk
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /opt/android-studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
• IntelliJ at /opt/idea-IU-191.7479.19
✗ 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.44.2)
• VS Code at /usr/share/code
• Flutter extension version 3.8.1
[✓] Connected device (2 available)
• SM A505FN • R58M75PN4CJ • android-arm64 • Android 9 (API 28)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemse: device-specificOnly manifests on certain devicesOnly manifests on certain devicesf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.17Found to occur in 1.17Found to occur in 1.17found in release: 1.18Occurs in 1.18Occurs in 1.18frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
