flutty_solar_icons 1.0.4
flutty_solar_icons: ^1.0.4 copied to clipboard
Solar icon pack for Flutter by FluttyUI with 6 weights and multi-layer duotone support.
FluttySolarIcons #
flutty_solar_icons is a Flutter icon package generated from SVG sources.
Flutter port created by FluttyUI.
It provides 1246 icons across 6 weights:
boldbrokenlinearoutlineboldDuotonelineDuotone
The API is designed for direct use in widgets and keeps icon access flat (SolarIcons.*), while the showcase app can still group by category.
Installation #
Add the dependency:
dependencies:
flutty_solar_icons: ^1.0.4
Then run:
flutter pub get
Basic usage #
import 'package:flutty_solar_icons/solar_icons_flutter.dart';
SolarIcon(
SolarIcons.Person,
weight: SolarIconWeight.linear,
color: Colors.blue,
size: 24,
)
Duotone and multi-layer usage #
Use only color and optional secondaryColor.
Layer behavior:
- Layer 1 uses
color. - Layer 2 uses
secondaryColororcolor.withAlpha(128)ifsecondaryColoris not provided. - Layer 3 uses:
secondaryColor.withAlpha(64)ifsecondaryColoris provided.- otherwise
color.withAlpha(64).
- Layer 4 uses:
secondaryColor.withAlpha(32)ifsecondaryColoris provided.- otherwise
color.withAlpha(32).
SolarIcon(
SolarIcons.Leaf,
weight: SolarIconWeight.lineDuotone,
color: const Color(0xFF1E293B),
secondaryColor: const Color(0xFFF97316),
size: 28,
)
For non-duotone weights, only color is used.
API #
SolarIconwidgetSolarIconsicon constantsSolarIconWeightenumSolarIconData
Example #
A runnable example is included in /example.
License #
MIT License. See LICENSE.