Flutter SLDS Icons

pub package

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

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/original folder.

  • 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 MyFlutterApp to SLDSIcons.

  • Drag to select all icons and click the Download button.

  • Unzip the output and move/rename s_l_d_s_icons_icons.dart to lib/src/slds_icons.dart.

  • Change _kFontPkg to flutter_slds_icons.

  • Move the output fonts/SLDSIcons.ttf to lib/assets/SLDSIcons.ttf.

  • Create the test icon map using dart run scripts/generate_test_map.dart.

Libraries

flutter_slds_icons