I want to create an EditableText
that adjusts its width to the length of its text. However, my EditableText
always takes over all available horizontal space.
My Widget:
EditableText(
controller: TextEditingController(),
cursorColor: MyColors.black,
textDirection: TextDirection.ltr,
focusNode: FocusNode(),
style: TextStyle(),
)
Is there any way to fix this problem? Any help is appreciated.