Skip to content

text_input.dart': Failed assertion: line 710 pos 12: 'attached': is not true when changing InputDecoration of a previously active Textfield #40755

@hardik9996

Description

@hardik9996

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building InputDecorator(decoration: InputDecoration(labelText: "عنوان بريد الكتروني", helperText: "", hintMaxLines: "1", errorStyle: "TextStyle(inherit: true, color: MaterialColor(primary value: Color(0xfff44336)), family: AdobeArabicBold, height: 1.0x)", prefixIcon: Icon(IconData(U+0E853), color: Color(0xffffffff)), focusedBorder: UnderlineInputBorder(), enabledBorder: UnderlineInputBorder(), alignLabelWithHint: false), isFocused: false, isEmpty: false, dependencies: [_LocalizationsScope-[GlobalKey#2faa2], _InheritedTheme, Directionality, MediaQuery], state: _InputDecoratorState#ffa1a(tickers: tracking 2 tickers)):
'package:flutter/src/services/text_input.dart': Failed assertion: line 703 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

User-created ancestor of the error-causing widget was:
TextFormField file:///D:/AndroidWorkspace/ComoRestuarantApp/como_restaurant/lib/login/login_ui.dart:97:25
When the exception was thrown, this was the stack:
#2 TextInputConnection.setStyle (package:flutter/src/services/text_input.dart:703:12)
#3 EditableTextState.didUpdateWidget (package:flutter/src/widgets/editable_text.dart:1100:29)
#4 StatefulElement.update (package:flutter/src/widgets/framework.dart:4096:58)
#5 Element.updateChild (package:flutter/src/widgets/framework.dart:2886:15)
#6 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5136:14)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

Metadata

Metadata

Assignees

Labels

a: error messageError messages from the Flutter frameworka: text inputEntering text in a text field or keyboard related problemsc: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions