Repository navigation
[web] SelectableText doesn't show toolbar #44176
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencea: typographyText rendering, possibly libtxtText rendering, possibly libtxtfound in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyplatform-webWeb applications specificallyWeb applications specificallyteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Problem
Flutter 1.10.14 • channel dev
-
flutter for web
Want to copy String_data in the flutter for web. -
clipboard
When trying clipboard in the flutter web , cant copy the text.
import 'package:flutter/services.dart';
Clipboard.setData(ClipboardData(text: 'data'));
- SelectableText
When tap it, do not appear toolbar.
SelectableText(
'SelectableText',
showCursor: true,
enableInteractiveSelection: true,
toolbarOptions: ToolbarOptions(copy: true),
style: TextStyle(height: 2),
),
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencea: typographyText rendering, possibly libtxtText rendering, possibly libtxtfound in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyplatform-webWeb applications specificallyWeb applications specificallyteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Activity
iapicca commentedon Nov 5, 2019
Hi @OGSUG
I'm not 100% sure of my next statement,
but I believe that now there's SelectableText in place of Clipboard,
or I might have misunderstood your issue.
Regardless, it would be helpful if you could provide your
flutter doctor -vand a self contained app on github or the steps to reproduce it.
Thank you
OGSUG commentedon Nov 6, 2019
Hi, @iapicca
I tried the selectableText , but iam trying flutter for web and there is no tooltip when i tap selectableText..
flutter-version :Flutter 1.10.14 • channel dev
iapicca commentedon Nov 6, 2019
Hi again @OGSUG
I believe you are right,
the cursor shows only once and the "copy" toolbar doesn't show
code
doctor
[-]clipboard in flutter web[/-][+][web] SelectableText - showCursor and ToolbarOptions behavior [/+]deckerst commentedon Nov 22, 2019
Still an issue in Flutter v1.12.7.
By the way, does the team intend to handle the usual shortcuts ctrl-c / ctrl-a... as an alternative to the toolbar, when on desktop/web? Or should we wrap the component in a
RawKeyboardListenerto achieve it?abrshdir commentedon Apr 12, 2020
Flutter please include a share button or custom ToolbarOptions on SelectableText. Please sincerely.
11 remaining items
huycozy commentedon Nov 8, 2022
I tested on the latest stable and master channels. This issue seems to be fixed on Android browser but it doesn't have proper behavior on iOS browser.
✅: No Issue ❌: Issue reproduced
RPReplay_Final1667905222.MP4
flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.3.7, on macOS 13.0 22A380 darwin-x64, locale en-VN) • Flutter version 3.3.7 on channel stable at /Users/huynq/Documents/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision e99c9c7cd9 (27 hours ago), 2022-11-01 16:59:00 -0700 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0 [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-33, build-tools 31.0.0 • ANDROID_HOME = /Users/huynq/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) • Xcode at /Applications/Xcode14.0.1.app/Contents/Developer • Build 14A400 • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) [✓] IntelliJ IDEA Community Edition (version 2022.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 70.0.5 • Dart plugin version 222.4167.21 [✓] VS Code (version 1.72.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.50.0 [✓] Connected device (3 available) • SM T225 (mobile) • R9JT3004VRJ • android-arm64 • Android 12 (API 31) • macOS (desktop) • macos • darwin-x64 • macOS 13.0 22A380 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.87 [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found!Updating the labels for further investigation.