Skip to content

Crash when inputting devanagari halant #110343

@cloudonlanapps

Description

@cloudonlanapps

The TextField Widget create assertion when keying in halant character using Hindi/Devanagari-QWERTY keyboard.

The code has a single TextField.
This problem occurs on any TextField irrespective of setting the controller or not. also tried various combinations for controller settings for composition. Is this a bug or we need to add any additional parameters to make it working or any workaround?

Attached screen shot and also the main.dart file.

Screenshot 2022-08-26 at 7 48 30 PM

main.dart

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: 'TextField Devnagari keyboard',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('TextField Devnagari keyboard'),
        ),
        body: const TextFieldWidget(),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Center(
        child: Column(
      mainAxisSize: MainAxisSize.min,
      children: const <Widget>[
        Padding(
          padding: EdgeInsets.all(8),
          child: TextField(
            decoration: InputDecoration(
                border: OutlineInputBorder(), hintText: 'EnterText'),
          ),
        ),
      ],
    ));
  }
}

Metadata

Metadata

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 problemsc: crashStack traces logged to the consoledependency: skiaSkia team may need to help usfound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-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