我在 vs code 中安装了 prettier 扩展,当我点击格式化文件时,vs code 问我:“你想使用默认格式化程序还是使用更漂亮的格式化程序进行格式化?”。但是我不小心选择了默认的格式化程序。如何将其更改为默认设置更漂亮的格式?
我有一个原生的闪屏,但是当闪屏结束时,它在我的应用主屏幕上有一个淡入淡出的动画。我需要删除它,并仍然使用本机飞溅。我怎样才能做到这一点?
我有一个 TextFormField 来收集用户身份验证输入,这很好。

但是当它显示验证消息时,会发生这种情况:

如何将错误消息的位置更改为不再发生?我只想要一种方法可以轻松解决这个问题,并且该领域仍然很漂亮。这是代码。
Form(
key: _formKey,
child: Container(
width: double.infinity,
height: 40,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
blurRadius: 1.1,
color: Colors.black45,
spreadRadius: 0.5,
offset: Offset(
1.5,
2,
),
),
],
borderRadius: BorderRadius.circular(20),
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 15),
child: SizedBox(
height: 40,
child: TextFormField(
style: TextStyle(color: Colors.black),
decoration: InputDecoration(
border: InputBorder.none,
disabledBorder: InputBorder.none,
enabledBorder: InputBorder.none,
errorBorder: InputBorder.none,
focusedBorder: InputBorder.none,
focusedErrorBorder: InputBorder.none,
hintText: 'Full name',
hintStyle: TextStyle(color: Colors.grey[600]),
icon: Icon(Icons.account_circle, color: Colors.black),
),
onSaved: (string) => …Run Code Online (Sandbox Code Playgroud)