我正在尝试添加一封电子邮件,这是一个很长的文本,但是当文本字段已满时,它会将所有文本切成两半。这是我的代码:
Container(
height: 45,
decoration: BoxDecoration(
color: HexColor(MyColors.white),
),
child: TextFormField(
controller: _email,
maxLength: 100,
autofocus: true,
validator: validateEmail,
keyboardType: TextInputType.emailAddress,
decoration: InputDecoration(
labelText: 'Email',
counterText: "",
border: OutlineInputBorder(),
),
),
),
Run Code Online (Sandbox Code Playgroud)