Skip to content

Hide selection toolbar on iOS and Android when moving paddles/caret #62193

Description

@pedromassangocode

The selection toolbar in Flutter does not behave as the native one on iOS. The native behaviour is to hide the selection toolbar while the user is moving the caret and then show it once he release the caret. Flutter is actually showing the toolbar all the time. See the GIF bellow.

aa11

Complete sample code
import 'package:flutter/material.dart';

void main() => runApp(TextDemo());

class TextDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Text Wrap Demo',
        home: Scaffold(
          body: Center(
            child: TextField(),
          ),
        ),
    );
  }
}
flutter doctor -v
[✓] Flutter (Channel dev, 1.21.0-1.0.pre, on Mac OS X 10.15.5 19F101, locale
    en-AO)
    • Flutter version 1.21.0-1.0.pre at /Users/pedro/dev/SDKs/flutter_dev
    • Framework revision f25bd9c55c (9 days ago), 2020-07-14 20:26:01 -0400
    • Engine revision 99c2b3a245
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/pedro/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Users/pedro/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/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 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/google-chrome-unsafe)
    ! /Applications/Google Chrome.app/Contents/MacOS/google-chrome-unsafe is not
      executable.

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] Android Studio (version 4.0)
    • Android Studio at /Users/pedro/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/Android
      Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.1

[✓] Connected device (3 available)
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86    • Android 9
      (API 28) (emulator)
    • macOS (desktop)              • macos         • darwin-x64     • Mac OS X
      10.15.5 19F101
    • Web Server (web)             • web-server    • web-javascript • Flutter
      Tools

! Doctor found issues in 1 category.

Cc @LongCatIsLooong because you worked in the selection toolbar before.

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    platform-iosiOS applications specifically
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: fidelityMatching the OEM platforms better
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    on Jul 24, 2020
  2. guidezpl commented on Jul 24, 2020

    @guidezpl
    Member

    Related to #52425

  3. changed the title [-]Selection toolbar doesn't have the same behaviour as native one on iOS[/-] [+]Selection toolbar doesn't have the same behaviour as the native one on iOS[/+] on Jul 24, 2020
  4. self-assigned this
    on Jul 28, 2020
  5. added this to the 1.22 - August 2020 milestone on Jul 28, 2020
  6. changed the title [-]Selection toolbar doesn't have the same behaviour as the native one on iOS[/-] [+]Hide selection toolbar on iOS and Android when moving paddles/caret[/+] on Jul 28, 2020
  7. guidezpl commented on Jul 28, 2020

    @guidezpl
    Member

    Expanding this to cover Android, which does the same thing, albeit a bit slower

  8. 2 remaining items

  9. removed this from the 1.23 - September 2020 milestone on Sep 16, 2020
  10. axelthat commented on Jun 7, 2021

    @axelthat

    Any updates?

  11. removed their assignment
    on Mar 12, 2022
  12. github-actions commented on Jun 16, 2022

    @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.

  13. locked as resolved and limited conversation to collaborators on Jun 16, 2022
  14. markusaksli-nc commented on Jun 20, 2022

    @markusaksli-nc
    Contributor

    The PR got reverted and this is waiting on the reland #105362

  15. moved this to PR submitted in Nevercodeon Jul 18, 2022
  16. markusaksli-nc commented on Aug 29, 2022

    @markusaksli-nc
    Contributor

    This is fixed on master

  17. Repository owner moved this from PR submitted to Done (PR merged) in Nevercodeon Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsfound in release: 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesplatform-androidAndroid applications specificallyplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions