Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Selection]SelectionArea rich text clipboard #104542

Closed
chunhtai opened this issue May 24, 2022 · 3 comments
Closed

[Selection]SelectionArea rich text clipboard #104542

chunhtai opened this issue May 24, 2022 · 3 comments
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: selection SelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIs framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@chunhtai
Copy link
Contributor

Steps to Reproduce

import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: SelectionArea(
        child: Scaffold(
          appBar: AppBar(title: const Text(_title)),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: const <Widget>[
                Text('Row 1', style: TextStyle(fontSize: 30, color: Colors.red)),
                Text('Row 2'),
                Text('Row 3'),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
  1. try to select and copy test with different style
  2. paste into google doc or some richtext editor

currently it store as plainText.

Ideally it should preserve some rich text content.

@chunhtai chunhtai added framework flutter/packages/flutter repository. See also f: labels. f: selection SelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIs labels May 24, 2022
@exaby73
Copy link
Member

exaby73 commented May 25, 2022

Hi @chunhtai. Thanks for filing this issue. This looks like a valid feature request.

@exaby73 exaby73 added c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter a: text input Entering text in a text field or keyboard related problems and removed a: text input Entering text in a text field or keyboard related problems labels May 25, 2022
@goderbauer goderbauer added the P3 Issues that are less important to the Flutter project label May 25, 2022
@chunhtai
Copy link
Contributor Author

I forgot I created #104206

closing as a duplicate

@maheshmnj maheshmnj added the r: duplicate Issue is closed as a duplicate of an existing issue label May 26, 2022
@exaby73 exaby73 closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2022
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: selection SelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIs framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

4 participants