Container( height: 20, width: 100, child: TextFormField( maxLines: 1, decoration: InputDecoration( isDense: true, contentPadding: EdgeInsets.fromLTRB(5.0, 1.0, 5.0, 1.0), ), onChanged: (value) { print(value); }, ), );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter