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

31 lines
1.3 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class BookStack extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const BookStack({Key? key, this.color, this.width, this.height})
: super(key: key);
@override
Widget build(BuildContext context) => SvgPicture.string(
'''
<svg width="24" stroke-width="1.5" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5 19.5V5C5 3.89543 5.89543 3 7 3H18.4C18.7314 3 19 3.26863 19 3.6V21" stroke="currentColor" stroke-linecap="round"/>
<path d="M9 7L15 7" stroke="currentColor" stroke-linecap="round"/>
<path d="M6.5 15L19 15" stroke="currentColor" stroke-linecap="round"/>
<path d="M6.5 18L19 18" stroke="currentColor" stroke-linecap="round"/>
<path d="M6.5 21L19 21" stroke="currentColor" stroke-linecap="round"/>
<path d="M6.5 18C5.5 18 5 17.3284 5 16.5C5 15.6716 5.5 15 6.5 15" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6.5 21C5.5 21 5 20.3284 5 19.5C5 18.6716 5.5 18 6.5 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
''',
colorFilter:
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
width: width,
height: height,
);
}