| 1234567891011121314151617181920212223242526272829303132 |
- import 'package:flutter/material.dart';
- import 'package:flutter_svg/flutter_svg.dart';
- /// The generic line-icon set used across the launcher.
- class AppIcon extends StatelessWidget {
- const AppIcon(
- this.asset, {
- super.key,
- this.size = 24,
- this.color,
- this.semanticLabel,
- });
- final String asset;
- final double size;
- final Color? color;
- final String? semanticLabel;
- @override
- Widget build(BuildContext context) {
- return SvgPicture.asset(
- asset,
- width: size,
- height: size,
- colorFilter: ColorFilter.mode(
- color ?? Theme.of(context).colorScheme.onSurface,
- BlendMode.srcIn,
- ),
- semanticsLabel: semanticLabel,
- );
- }
- }
|