Skip to content

Missing selection area of the text after copy text in Flutter on IOS #72124

Closed

Description

@AlexFox63

Steps to Reproduce

  1. Select text or Select all text (only on IOS)
  2. Copy text
  3. The selection of text is missing but on the native IOS apps selection is remain.

CupertinoTextField also not working as IOS component.

Video with the problem https://drive.google.com/file/d/1JWJ_xsYNQPgBpbEynoPTPW5YekrUGQha/view?usp=sharing

Activity

  1. pedromassangocode commented on Dec 11, 2020

    @pedromassangocode

    Hi @AlexFox63
    Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
    Thank you

  2. added
    in triagePresently being triaged by the triage team
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 11, 2020
  3. AlexFox63 commented on Dec 11, 2020

    @AlexFox63
    Author

    [✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale en-GB)
    • Flutter version 1.22.4 at /Users/fokin/tools/flutter
    • Framework revision 1aafb3a (4 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/fokin/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

    [!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

    [!] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ 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

    [✓] Connected device (2 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
    • iPhone SE (2nd generation) (mobile) • B8724104-1BB1-49DD-8907-B0495A4D3BFC • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

    ! Doctor found issues in 2 categories.

    import 'package:flutter/material.dart';
    import 'package:flutter/cupertino.dart';
    
    void main() async {
     runApp(
       MaterialApp(
         debugShowCheckedModeBanner: false,
         home: Scaffold(
           body: MyPrefilledText(),
         ),
       ),
     );
    }
    class MyPrefilledText extends StatefulWidget {
     @override
     _MyPrefilledTextState createState() => _MyPrefilledTextState();
    }
    
    class _MyPrefilledTextState extends State<MyPrefilledText> {
     TextEditingController _textController;
    
     @override
     void initState() {
       super.initState();
       _textController = TextEditingController(text: 'initial text');
     }
    
     @override
     Widget build(BuildContext context) {
       return CupertinoTextField(controller: _textController);
     }
    }
    
  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 11, 2020
  5. pedromassangocode commented on Dec 11, 2020

    @pedromassangocode

    Hi @AlexFox63
    Can you please make it clear what the issue here?
    As you can see the text copied is completely pasted in the default messages app.

    gif

    flutter doctor -v
    [✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
        • Flutter version 1.22.5 at /Users/pedromassango/dev/SDKs/flutter_stable
        • Framework revision 7891006299 (15 hours ago), 2020-12-10 11:54:40 -0800
        • Engine revision ae90085a84
        • Dart version 2.10.4
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
        • Android SDK at /Users/pedromassango/Library/Android/sdk
        • Platform android-30, build-tools 30.0.2
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 12.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.1, Build version 12A7403
        • CocoaPods version 1.9.3
    
    [!] Android Studio (version 4.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    
    [✓] IntelliJ IDEA Community Edition (version 2020.3)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin installed
        • Dart plugin version 203.5981.152
    
    [✓] VS Code (version 1.51.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.16.0
    
    [✓] Connected device (2 available)
        • sdk gphone x86 arm (mobile) • emulator-5554                        • android-x86 • Android 11 (API 30) (emulator)
        • iPhone 12 Pro (mobile)      • 1EEFA5B2-DA95-49CC-AA0B-968BB248B8F3 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
    
    ! Doctor found issues in 1 category.
    Process finished with exit code 0
    
  6. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 11, 2020
  7. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 11, 2020
  8. changed the title [-]Missing selecting text after copy text in Flutter on IOS[/-] [+]Missing selection of the text after copy text in Flutter on IOS[/+] on Dec 11, 2020
  9. pedromassangocode commented on Dec 11, 2020

    @pedromassangocode

    Hi @AlexFox63
    Thanks for making this clear, I was able to reproduce the issue (see my video in #72124 (comment)).

  10. added
    a: fidelityMatching the OEM platforms better
    a: qualityA truly polished experience
    a: text inputEntering text in a text field or keyboard related problems
    frameworkflutter/packages/flutter repository. See also f: labels.
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    platform-iosiOS applications specifically
    and removed
    in triagePresently being triaged by the triage team
    on Dec 11, 2020
  11. AlexFox63 commented on Dec 11, 2020

    @AlexFox63
    Author

    Hey, yes, the first part of ur video is about my problem. Thanks for the quick response.

  12. changed the title [-]Missing selection of the text after copy text in Flutter on IOS[/-] [+]Missing selection area of the text after copy text in Flutter on IOS[/+] on Dec 15, 2020
  13. pedromassangocode commented on Dec 15, 2020

    @pedromassangocode

    Somehow related to #62193.

  14. goderbauer commented on Dec 16, 2020

    @goderbauer
    Member
  15. justinmc commented on Feb 23, 2021

    @justinmc
    Contributor

    Thanks for this issue @AlexFox63! I can't believe I didn't notice something so obvious. It should be fixed and tested in master now.

  16. github-actions commented on Aug 5, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: fidelityMatching the OEM platforms bettera: qualityA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsfound in release: 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions