Flutter SLDS Icons
Salesforce Lightning Design System Icons for Flutter!
Documentation
The original icons
The generator
The output
Usage
import 'package:flutter_slds_icons/flutter_slds_icons.dart';
Icon(SLDSIcons.account);
Legal
Used under the Creative Commons Attribution-NoDerivatives 4.0 International Public License.
Salesforce has not reviewed, approved, or endorsed this project.
Instructions for Maintainers
-
Download the original icons from the Salesforce link above.
-
Unzip them into the
assets/originalfolder. -
Create the 'parsed' icons using
dart run scripts/generate_icons.dart. -
Using
FlutterIcon, drag and drop all the 'parsed' icons into the site. -
Change the class name from
MyFlutterApptoSLDSIcons. -
Drag to select all icons and click the Download button.
-
Unzip the output and move/rename
s_l_d_s_icons_icons.darttolib/src/slds_icons.dart. -
Change
_kFontPkgtoflutter_slds_icons. -
Move the output
fonts/SLDSIcons.ttftolib/assets/SLDSIcons.ttf. -
Create the test icon map using
dart run scripts/generate_test_map.dart.