mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-07 16:32:26 +02:00
28 lines
1.2 KiB
Dart
28 lines
1.2 KiB
Dart
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
class Wristwatch extends StatelessWidget {
|
|
final Color? color;
|
|
final double? width;
|
|
final double? height;
|
|
|
|
const Wristwatch({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="M16 16.4722V20C16 21.1045 15.1046 22 14 22H10C8.89543 22 8 21.1045 8 20V16.4722" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M8 7.52779V4C8 2.89543 8.89543 2 10 2H14C15.1046 2 16 2.89543 16 4V7.52779" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18C15.3137 18 18 15.3137 18 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M14 12H12V10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
''',
|
|
colorFilter:
|
|
color != null ? ColorFilter.mode(color!, BlendMode.srcIn) : null,
|
|
width: width,
|
|
height: height,
|
|
);
|
|
}
|