I have a text field that needs to scroll to fit text inside it, the result has been achieved with undesirable behavior where the scroll pushes other items down, i need to have a scrollable Text field that does not cause an overflow, below is what has been achieved
The above Text field has been implemented using below code
Container(
alignment: Alignment.centerRight,
padding: EdgeInsets.fromLTRB(10, 20, 10, 0),
child: SingleChildScrollView(
child: Container(
child: Text(
"123 123 123 123 123 12 3123 123 123 123 123 1233123 123 123 123 123 123 ",
style: TextStyle(fontSize: 38.0),
),
), // your root container
)),
Below is a demonstration of what I want to achieve, what am I missing?