【发布时间】:2022-09-23 05:01:31
【问题描述】:
我在颤振应用程序中使用 TextFormField 。在我的应用程序中无处不在它工作正常,但只是在一个屏幕上它给了我一个错误。当我单击 TextFormField 时,键盘打开并立即自动隐藏。这是我的 TextFormField 代码。
TextFormField(
controller: offerController,
maxLines: 1,
keyboardType: TextInputType.number,
textInputAction: TextInputAction.next,
style: GoogleFonts.arimo(
textStyle: const TextStyle(
color: Color(ColorConstants.TEXT_COLOR_GREY),
fontSize: 14.0,
fontWeight: FontWeight.w400,
),
),
decoration: InputDecoration(
border: InputBorder.none,
enabledBorder: InputBorder.none,
hintText: \"Add the Offer Value\",
hintStyle: GoogleFonts.arimo(
textStyle: const TextStyle(
color: Color(ColorConstants.COLOR_BFBFBF),
fontSize: 14.0,
fontWeight: FontWeight.w400,
),
),
),
)
标签: android flutter dart flutter-layout