vedant kulkarni
vedant kulkarni

Reputation: 177

Where are inbuilt icons in flutter located (default location in flutter folder)

I want to use flutter inbuilt icons as assets. So I want default location where all of flutter icons are located in flutter folder of flutter installation.

Upvotes: 2

Views: 1900

Answers (3)

Baker
Baker

Reputation: 28060

Not an answer to the original question, but likely tangentially helpful...

To visually identify & search/filter icons, both from the included MaterialIcons from Google and those created by the Community, check out: https://materialdesignicons.com/

And to use them, the related pub.dev package for material_design_icons_flutter.

Upvotes: 1

Randal Schwartz
Randal Schwartz

Reputation: 44186

This would seem to imply that there's a fontFamily named 'MaterialIcons'. Not sure you can get it easily from any part of the Flutter distro, but https://material.io/resources/icons/ will show how to download or reference the font for your material designs.

static const IconData ac_unit_outlined = IconData(0xe005, fontFamily: 'MaterialIcons')

Upvotes: 1

JayDev
JayDev

Reputation: 1360

I don't think they are. If you look at the IconData class (https://api.flutter.dev/flutter/widgets/IconData-class.html). You will see that the description says 'A description of an icon fulfilled by a font glyph.'

Taking an example of one of the Icon values:

static const IconData list_alt = IconData(0xe81b, fontFamily: 'MaterialIcons');

I believe what that is telling us is that the Icon is being defined by the position 0xe81b in the Unicode font family called MaterialIcons

Upvotes: 0

Related Questions