Home > Mobile >  What is the Icon for tick and cross in flutter? ✅❌
What is the Icon for tick and cross in flutter? ✅❌

Time:07-01

Hi I was searching the icon for tick and cross ✅❌in flutter, don't seem to find it from the devs doc.

https://api.flutter.dev/flutter/material/Icons-class.html

The webpage is really laggy, can't CTRL F properly too. I tried Icon.tick, Icon.correct, Icon.cross, can't find any suitable one to use.

What do other flutter developers use to represent ✅❌? Appreciate your help!

My code

              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();
                  })

CodePudding user response:

For cross use Icons.close and for tick Icons.check

CodePudding user response:

You can use the icons from fontsawesome by adding the dependency of fontsawesome in pubspec.yaml file. There you will find a tons of icons.

  • Related