iconoir/packages/iconoir-flutter/lib/git_branch.dart
2022-07-05 10:24:49 -04:00

27 lines
1.1 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
class GitBranch extends StatelessWidget {
final Color? color;
final double? width;
final double? height;
const GitBranch({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="M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 16V3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8 18H9C12.5 18 18 15.9 18 9.5V8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
''',
color: color,
width: width,
height: height,
);
}