Skip to content

[iOS] iOS system context menu is missing the "Share" button #173491

@loic-sharma

Description

@loic-sharma

Steps to reproduce

  1. Open a Flutter iOS app with a text field that contains text
  2. Select text to show the iOS system context menu

Expected results

A TextField's context menu has the "Share" button when text is selected.

Tapping the "Share" button should show the iOS's share bottom sheet:

Actual results

A TextField's context menu does not have the "Share" button when text is selected.

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(
    const MaterialApp(
      home: TextFieldPage(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Padding(
          padding: EdgeInsets.all(64.0),
          child: TextField(),
        ),
      ),
    );
  }
}

Screenshots or Video

No response

Logs

N/A

Flutter Doctor output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityplatform-iosiOS applications specificallyteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions