嗨,我在 flutter 中搜索勾选和十字的图标 ✅❌,似乎没有从开发文档中找到它。
https://api.flutter.dev/flutter/material/Icons-class.html
网页实在是太卡了,CTRL + F也不能正常使用。我尝试了 Icon.tick、Icon. Correct、Icon.cross,找不到合适的可以用。
其他 Flutter 开发者用什么来表示 ✅❌?感谢您的帮助!
我的代码
child: SlideAction(
sliderButtonIconPadding: 8,
text: Slidewords,
textStyle: TextStyle(
fontWeight: FontWeight.bold,
fontSize: (18),
color: Colors.white),
key: key,
submittedIcon: formvalid
? const Icon(Icons.visibility) // tick icon
: const Icon(Icons.visibility_off), // cross icon
onSubmit: () async {
Future.delayed(
Duration(seconds: 1),
() => key.currentState!.reset(),
);
_trySubmitForm();
})
交叉使用
Icons.close
和勾选 Icons.check
使用 Icons.check 进行勾选 ✔️ 使用 Icons.close 取消 ❌