Skip to content

Incorrect position of Japanese predictive conversion popup in TextFormField using maxLines on the Web #161592

@fukazayo

Description

@fukazayo

Steps to reproduce

  1. Prepare a Mac with macOS Sequoia 15.2 (Japanese).
  2. Paste the code sample into dartpad.dev and run it.
  3. Type Japanese in TextFormField and display the predictive conversion popup.

Expected results

The predictive conversion popup will appear without any redundant space under the text.

Actual results

The predictive conversion popup is appeared with redundant space under the text.

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(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  const MyHomePage({
    super.key,
    required this.title,
  });

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: TextFormField(
        maxLines: 10,
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Logs

Logs

None.

Flutter Doctor output

Doctor output

None. (Run on dartpad.dev with Based on Dart SDK 3.6.0 and Flutter SDK 3.27.1.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsfound in release: 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions