2022-09-22 23:48:50 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-08-26 08:11:35 +00:00
|
|
|
import 'package:flutter_svg/svg.dart';
|
|
|
|
import 'package:stackwallet/utilities/assets.dart';
|
2022-09-22 23:48:50 +00:00
|
|
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
class XIcon extends StatelessWidget {
|
|
|
|
const XIcon({
|
|
|
|
Key? key,
|
|
|
|
this.width = 18,
|
|
|
|
this.height = 18,
|
2022-09-21 21:59:52 +00:00
|
|
|
this.color,
|
2022-08-26 08:11:35 +00:00
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final double width;
|
|
|
|
final double height;
|
|
|
|
final Color? color;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return SvgPicture.asset(
|
|
|
|
Assets.svg.x,
|
|
|
|
width: width,
|
|
|
|
height: height,
|
2022-09-22 23:48:50 +00:00
|
|
|
color: color ??
|
|
|
|
Theme.of(context)
|
|
|
|
.extension<StackColors>()!
|
|
|
|
.textFieldActiveSearchIconRight,
|
2022-08-26 08:11:35 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|