Skip to content

Multiple cursors visible on a list of TextField on iOS #173106

@xvrh

Description

@xvrh

Steps to reproduce

  1. Run provided code sample on an iPhone
  2. Select a field in the list
  3. Select another field with a very quick gesture (it requires a specific slide gesture that is hard to explain but it's relatively easy to trigger by playing a bit with it).
  4. See video for demonstration

Expected results

It should be impossible to have several cursors visible at the same time

Actual results

Several cursors are visible at the same time.

I'm able to reproduce this on the latest master and latest beta channel. Only on iOS devices. I could not reproduce on Android.

Code sample

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Text fields')),
        body: SingleChildScrollView(
          padding: const EdgeInsets.symmetric(horizontal: 20),
          child: Column(
            children: [
              for (var i = 0; i < 20; i++)
                TextFormField(
                  key: ValueKey(i),
                  decoration: InputDecoration(hintText: 'Field $i'),
                ),
            ],
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
screencapture-1754054444252.mp4

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Flutter (Channel main, 3.33.0-1.0.pre-1227, on macOS 14.5 23F79 darwin-arm64, locale en-BE)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowfound in release: 3.33Found to occur in 3.33has 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 versionteam-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