This repository provides a collection of +4000 icons used by the Saudi Digital Government Authority (SDGA), based on the HugeIcons icon library. These icons are designed to maintain visual consistency and enhance the user experience.
Each icon in the collection has 7 variants:
- Bulk
- DuoTone
- TwoTone
- Solid
- Stroke
- Sharp Solid
- Sharp Stroke
In the dependencies: section of your pubspec.yaml, add the following line:
sdga_icons: <latest_version>// import the package
import 'package:sdga_icons/sdga_icons.dart';
// Show the smile icon in it's bulk variant.
SDGAIcon(
SDGAIconsBulk.smile,
semanticLabel: 'Smile',
),You could use any property of the Icon widget to personalize the icon.
Choose the desired icon variant by using one of these classes:
SDGAIconsBulkSDGAIconsDuotoneSDGAIconsSharpSolidSDGAIconsSharpStrokeSDGAIconsSolidSDGAIconsStrokeSDGAIconsTwotone
You can also use the native flutter Icon() widget passing any SDGAIcons value
Icon(SDGAIconsSolid.smile), // Smile IconNOTE: Due to some limitations with the flutter
Iconwidget when you pass anyBulk,DuotoneorTwotoneicon it will only render part of the icon, because these variants are splitted into 2 icons, for this case prefer to use our customSDGAIconwidget that works the same asIconand support these variants
You can see all the icons and variants within the example app. Just clone the repository and run the example project within the repository Or use the following commands:
cd sdga_icons/example
flutter pub get
flutter run