Repository: flutter
Issue: EditableText does not respect TextCapitalization when value is pasted from clipboard
Labels: a: text input,framework,a: quality,has reproducible steps,P2,found in release: 3.7,found in release: 3.8,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. use EditableText with textCapitalization set to TextCapitalization.characters
2. copy lowercase text to the clipboard
3. paste into the text field

**Expected results:** <!-- what did you want to see? -->
uppercase text

**Actual results:** <!-- what did you see? -->
text is the same case as it was copied

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
[+14638 ms] [DEVICE LOG] 2020-03-20 08:18:38.183064-0700  localhost Runner[68969]: (ManagedConfiguration) [com.apple.ManagedConfiguration:MC] Got system group container path from MCM for systemgroup.com.apple.configurationprofiles:
/Users/lanmonw/Library/Developer/CoreSimulator/Devices/F4578935-2A8B-4263-8D83-46891CD576E6/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
[  +27 ms] [DEVICE LOG] 2020-03-20 08:18:38.209139-0700  localhost Runner[68969]: (AggregateDictionary) AggregateDictionary is not supported on this platform
[  +51 ms] [DEVICE LOG] 2020-03-20 08:18:38.239617-0700  localhost Runner[68969]: (CoreFoundation) Created Activity ID: 0xbd6bb6, Description: Updating Key-Value Observers Of Preferences
[        ] [DEVICE LOG] 2020-03-20 08:18:38.242673-0700  localhost Runner[68969]: (UIKitCore) [com.apple.UIKit:FeedbackActivation] activate generator with style: TurnOn; activationCount: 0 -> 1; styleActivationCount: 0 -> 1;
<_UIKeyboardFeedbackGenerator: 0x600002931f40>
[   +1 ms] [DEVICE LOG] 2020-03-20 08:18:38.242838-0700  localhost Runner[68969]: (UIKitCore) [com.apple.UIKit:Feedback] activate engine <_UIFeedbackSystemSoundEngine: 0x60000331cee0>, clientCount: 0 -> 1
[        ] [DEVICE LOG] 2020-03-20 08:18:38.242897-0700  localhost Runner[68969]: (UIKitCore) [com.apple.UIKit:Feedback] activating engine <_UIFeedbackSystemSoundEngine: 0x60000331cee0>
[        ] [DEVICE LOG] 2020-03-20 08:18:38.243132-0700  localhost Runner[68969]: (UIKitCore) [com.apple.UIKit:Feedback] engine <_UIFeedbackSystemSoundEngine: 0x60000331cee0: state=3, numberOfClients=1, prewarmCount=0, _internal_isSuspended=0> state
changed: Inactive -> Activating
[        ] [DEVICE LOG] 2020-03-20 08:18:38.243234-0700  localhost Runner[68969]: (UIKitCore) [com.apple.UIKit:Feedback] engine <_UIFeedbackSystemSoundEngine: 0x60000331cee0: state=4, numberOfClients=1, prewarmCount=0, _internal_isSuspended=0> state
changed: Activating -> Running
[  +21 ms] [DEVICE LOG] 2020-03-20 08:18:38.276219-0700  localhost Runner[68969]: (CallKit) [com.apple.calls.callkit:Default] Call host has no calls
[+2199 ms] [DEVICE LOG] 2020-03-20 08:18:40.484509-0700  localhost Runner[68969]: (Foundation) [com.apple.foundation.filecoordination:claims] Read options: 8 -- URL:
file:///Users/lanmonw/Library/Developer/CoreSimulator/Devices/F4578935-2A8B-4263-8D83-46891CD576E6/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/b16b37243249f2b56ffd164e8365535cc9c15e3a -- purposeID:
A3939EB0-9D69-4B98-A07B-F01FAA5D1649 -- claimID: ED78E9E6-EE94-451B-8CAA-1142D84A0312
[  +10 ms] [DEVICE LOG] 2020-03-20 08:18:40.491606-0700  localhost Runner[68969]: (Foundation) [com.apple.foundation.filecoordination:claims] Claim ED78E9E6-EE94-451B-8CAA-1142D84A0312 granted in client
[   +6 ms] [DEVICE LOG] 2020-03-20 08:18:40.494049-0700  localhost Runner[68969]: (Foundation) [com.apple.foundation.filecoordination:claims] Claim ED78E9E6-EE94-451B-8CAA-1142D84A0312 invoked in client

```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
No issues found! (ran in 3.3s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en)
    • Flutter version 1.12.13+hotfix.8 at /Users/lanmonw/SDKs/flutter
    • Framework revision 0b8abb4724 (5 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.0)
    • Android SDK at /Users/lanmonw/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • ANDROID_HOME = /Users/lanmonw/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423

[✓] VS Code (version 1.43.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

[✓] Connected device (1 available)
    • iPhone 11 • F4578935-2A8B-4263-8D83-46891CD576E6 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

• No issues found!

```

</details>