2022/08/07 21:26
Just wrap thee text widget within a SizedBox. Also, you MUST assign the width and height atrributes.
SizedBox( width: 50, height:60, child: const TextField( obscureText: false, decoration: InputDecoration( border: OutlineInputBorder(), labelText: 'my text', ), ), ),