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

30 lines
1.5 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class Motorcycle extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const Motorcycle({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="M5 19C7.20914 19 9 17.2091 9 15C9 12.7909 7.20914 11 5 11C2.79086 11 1 12.7909 1 15C1 17.2091 2.79086 19 5 19Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M19 15L16 6L17 5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 8.5L11.5 8.5L7 11.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.5 15.5L12 15.5L13 13L16.5 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.5 10C6.5 8.5 3.5 8.5 1.5 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M19 19C21.2091 19 23 17.2091 23 15C23 12.7909 21.2091 11 19 11C16.7909 11 15 12.7909 15 15C15 17.2091 16.7909 19 19 19Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
''',
colorFilter:
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
width: width,
height: height,
);
}