iconoir/packages/iconoir-flutter/lib/rain.dart
2023-03-20 13:33:01 -04:00

29 lines
1.2 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class Rain extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const Rain({Key? key, this.color, this.width, this.height})
: super(key: key);
@override
Widget build(BuildContext context) => SvgPicture.string(
'''
<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 14V16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 20V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8 18V20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 18V20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M20 17.6073C21.4937 17.0221 23 15.6889 23 13C23 9 19.6667 8 18 8C18 6 18 2 12 2C6 2 6 6 6 8C4.33333 8 1 9 1 13C1 15.6889 2.50628 17.0221 4 17.6073" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
''',
colorFilter:
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
width: width,
height: height,
);
}