FIcon constructor
FIcon(
- FIconType type, {
- Key? key,
- double? width,
- double? height,
- FColorI fColor = FColor.lightBlack,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- String package = 'fidooo_design_system',
- SvgTheme theme = const SvgTheme(),
- String? semanticsLabel,
- bool allowDrawingOutsideViewBox = false,
- bool matchTextDirection = false,
- Clip clipBehavior = Clip.hardEdge,
- bool excludeFromSemantics = false,
- AssetBundle? bundle,
- WidgetBuilder? placeholderBuilder,
Fidooo Icon Widget
Implementation
FIcon(
FIconType type, {
Key? key,
double? width,
double? height,
this.fColor = FColor.lightBlack,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
String package = 'fidooo_design_system',
SvgTheme theme = const SvgTheme(),
String? semanticsLabel,
bool allowDrawingOutsideViewBox = false,
bool matchTextDirection = false,
Clip clipBehavior = Clip.hardEdge,
bool excludeFromSemantics = false,
AssetBundle? bundle,
WidgetBuilder? placeholderBuilder,
// ... any other properties we want to expose from SvgPicture
}) : _svgPicture = SvgPicture.asset(
type.path,
width: width,
height: height,
fit: fit,
package: package,
alignment: alignment,
theme: theme,
semanticsLabel: semanticsLabel,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
matchTextDirection: matchTextDirection,
clipBehavior: clipBehavior,
colorFilter: ColorFilter.mode(fColor.color, BlendMode.srcIn),
excludeFromSemantics: excludeFromSemantics,
bundle: bundle,
placeholderBuilder: placeholderBuilder,
// ... forward any other properties
),
super(key: key);