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

27 lines
983 B
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class Soap extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const Soap({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="M7 11C7 8.79086 8.79086 7 11 7H13C15.2091 7 17 8.79086 17 11V20.4C17 20.7314 16.7314 21 16.4 21H7.6C7.26863 21 7 20.7314 7 20.4V11Z" stroke="currentColor" stroke-linecap="round"/>
<path d="M7 13H17" stroke="currentColor" stroke-linecap="round"/>
<path d="M12 7V3M12 3H9M12 3H13" stroke="currentColor" stroke-linecap="round"/>
</svg>
''',
colorFilter:
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
width: width,
height: height,
);
}