flutter 中的勾号和叉号图标是什么? ✅❌

问题描述 投票:0回答:2

嗨,我在 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 widget icons symbols
2个回答
38
投票

交叉使用

Icons.close
和勾选
Icons.check


0
投票

使用 Icons.check 进行勾选 ✔️ 使用 Icons.close 取消 ❌

© www.soinside.com 2019 - 2024. All rights reserved.