iconoir/packages/iconoir-flutter/lib/glass_fragile.dart
2023-04-12 17:29:51 +00:00

27 lines
1.1 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class GlassFragile extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const GlassFragile({Key? key, this.color, this.width, this.height})
: super(key: key);
@override
Widget build(BuildContext context) => SvgPicture.string(
'''
<svg width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 22H12M16 22H12M12 22L12 15" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6.57808 10.0476C7.78286 12.6823 12 15 12 15C12 15 16.2171 12.6823 17.4219 10.0476C18.7226 7.20319 17.4219 2 17.4219 2L6.57808 2C6.57808 2 5.2774 7.20319 6.57808 10.0476Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12.5 2L10.5 6H13.5L11.5 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
''',
colorFilter:
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
width: width,
height: height,
);
}