在Flutter中,勾和叉的图标分别是什么?✅❌

19

嗨,我在寻找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();
                  })

许多人经常用这个网站来问一些简单的Flutter问题,这表明Flutter的文档真的需要改进。 - stackunderflow
1
我部分地同意你的观点,Flutter确实有全面的文档,但它缺乏展示开发者常用工具的示例。 - Jeff
1个回答

36

关闭请使用Icons.close,选择请使用Icons.check


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接