Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading